mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -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):
|
def newer(targets, sources):
|
||||||
if isinstance(targets, basestring):
|
if hasattr(targets, 'rjust'):
|
||||||
targets = [targets]
|
targets = [targets]
|
||||||
if isinstance(sources, basestring):
|
if hasattr(sources, 'rjust'):
|
||||||
sources = [sources]
|
sources = [sources]
|
||||||
for f in targets:
|
for f in targets:
|
||||||
if not os.path.exists(f):
|
if not os.path.exists(f):
|
||||||
|
@ -73,7 +73,7 @@ def expand_file_list(items, is_paths=True):
|
|||||||
for item in items:
|
for item in items:
|
||||||
if item.startswith('!'):
|
if item.startswith('!'):
|
||||||
item = lazy_load(item)
|
item = lazy_load(item)
|
||||||
if isinstance(item, basestring):
|
if hasattr(item, 'rjust'):
|
||||||
item = [item]
|
item = [item]
|
||||||
ans.extend(expand_file_list(item, is_paths=is_paths))
|
ans.extend(expand_file_list(item, is_paths=is_paths))
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user