scripts/tahoe_backup.py: oops, fix missing import, thanks pyflakes
authorBrian Warner <warner@lothar.com>
Fri, 29 Oct 2010 09:42:23 +0000 (02:42 -0700)
committerBrian Warner <warner@lothar.com>
Fri, 29 Oct 2010 09:42:23 +0000 (02:42 -0700)
test_cli.py: hush minor pyflakes complaint

src/allmydata/scripts/tahoe_backup.py
src/allmydata/test/test_cli.py

index 26279e0c431a3d7cb8b0763baab89d6b75f9b6fa..ef3da34b4fb543dbf9d7626506b931284d8770a4 100644 (file)
@@ -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
 
index d9e34c2a99759d0cdbcb8ee66bd98698fb1c2ea6..b3d899164f3ac07c06a9515be4a049a7852df173 100644 (file)
@@ -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.")