mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-24 22:26:09 +01:00
Remove basestring from the setup package
This commit is contained in:
parent
f39f3951f4
commit
e125996ee6
2 changed files with 3 additions and 3 deletions
|
|
@ -32,9 +32,9 @@
|
|||
|
||||
|
||||
def newer(targets, sources):
|
||||
if isinstance(targets, basestring):
|
||||
if hasattr(targets, 'rjust'):
|
||||
targets = [targets]
|
||||
if isinstance(sources, basestring):
|
||||
if hasattr(sources, 'rjust'):
|
||||
sources = [sources]
|
||||
for f in targets:
|
||||
if not os.path.exists(f):
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ def expand_file_list(items, is_paths=True):
|
|||
for item in items:
|
||||
if item.startswith('!'):
|
||||
item = lazy_load(item)
|
||||
if isinstance(item, basestring):
|
||||
if hasattr(item, 'rjust'):
|
||||
item = [item]
|
||||
ans.extend(expand_file_list(item, is_paths=is_paths))
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue