mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-10 20:30:00 +00:00
Fix the collision with the builtin list
This commit is contained in:
parent
2306819db1
commit
260706d330
@ -1,4 +1,5 @@
|
||||
from __future__ import print_function
|
||||
import __builtin__
|
||||
|
||||
import os.path, re, fnmatch
|
||||
from twisted.python import usage
|
||||
@ -218,7 +219,7 @@ class CpOptions(FileStoreOptions):
|
||||
def parseArgs(self, *args):
|
||||
if len(args) < 2:
|
||||
raise usage.UsageError("cp requires at least two arguments")
|
||||
self.sources = list(unicode(a, "utf-8") for a in args[:-1])
|
||||
self.sources = __builtin__.list(unicode(a, "utf-8") for a in args[:-1])
|
||||
self.destination = unicode(args[-1], "utf-8")
|
||||
|
||||
synopsis = "[options] FROM.. TO"
|
||||
@ -429,7 +430,7 @@ class CheckOptions(FileStoreOptions):
|
||||
("add-lease", None, "Add/renew lease on all shares."),
|
||||
]
|
||||
def parseArgs(self, *locations):
|
||||
self.locations = list(unicode(a, "utf-8") for a in locations)
|
||||
self.locations = __builtin__.list(unicode(a, "utf-8") for a in locations)
|
||||
|
||||
synopsis = "[options] [ALIAS:PATH]"
|
||||
description = """
|
||||
@ -446,7 +447,7 @@ class DeepCheckOptions(FileStoreOptions):
|
||||
("verbose", "v", "Be noisy about what is happening."),
|
||||
]
|
||||
def parseArgs(self, *locations):
|
||||
self.locations = list(unicode(a, "utf-8") for a in locations)
|
||||
self.locations = __builtin__.list(unicode(a, "utf-8") for a in locations)
|
||||
|
||||
synopsis = "[options] [ALIAS:PATH]"
|
||||
description = """
|
||||
|
Loading…
x
Reference in New Issue
Block a user