From: Brian Warner Date: Fri, 29 Oct 2010 09:42:23 +0000 (-0700) Subject: scripts/tahoe_backup.py: oops, fix missing import, thanks pyflakes X-Git-Url: https://git.rkrishnan.org/somewhere?a=commitdiff_plain;h=c88eb097d995dd5416418e502eb6be2a54b929ec;p=tahoe-lafs%2Ftahoe-lafs.git scripts/tahoe_backup.py: oops, fix missing import, thanks pyflakes test_cli.py: hush minor pyflakes complaint --- diff --git a/src/allmydata/scripts/tahoe_backup.py b/src/allmydata/scripts/tahoe_backup.py index 26279e0c..ef3da34b 100644 --- a/src/allmydata/scripts/tahoe_backup.py +++ b/src/allmydata/scripts/tahoe_backup.py @@ -9,7 +9,8 @@ from allmydata.scripts.common import get_alias, escape_path, DEFAULT_ALIAS, \ from allmydata.scripts.common_http import do_http, HTTPError, format_http_error from allmydata.util import time_format from allmydata.scripts import backupdb -from allmydata.util.encodingutil import listdir_unicode, quote_output, to_str, FilenameEncodingError +from allmydata.util.encodingutil import listdir_unicode, quote_output, \ + to_str, FilenameEncodingError, unicode_to_url from allmydata.util.assertutil import precondition from allmydata.util.fileutil import abspath_expanduser_unicode diff --git a/src/allmydata/test/test_cli.py b/src/allmydata/test/test_cli.py index d9e34c2a..b3d89916 100644 --- a/src/allmydata/test/test_cli.py +++ b/src/allmydata/test/test_cli.py @@ -1493,6 +1493,7 @@ class Cp(GridTestMixin, CLITestMixin, unittest.TestCase): fn1 = os.path.join(unicode(self.basedir), u"\u00C4rtonwall") try: fn1_arg = fn1.encode(get_argv_encoding()) + del fn1_arg # hush pyflakes artonwall_arg = u"\u00C4rtonwall".encode(get_argv_encoding()) except UnicodeEncodeError: raise unittest.SkipTest("A non-ASCII command argument could not be encoded on this platform.")