mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Remove basestring from the setup package
This commit is contained in:
parent
f39f3951f4
commit
e125996ee6
@ -32,9 +32,9 @@ _cache_dir_built = False
|
||||
|
||||
|
||||
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…
x
Reference in New Issue
Block a user