[mod] autopep8
This commit is contained in:
parent
dbdd257c52
commit
ab0885902e
@ -3,11 +3,13 @@ import json
|
|||||||
|
|
||||||
CACHE_VERSION = 2
|
CACHE_VERSION = 2
|
||||||
|
|
||||||
|
|
||||||
def remove_name(options):
|
def remove_name(options):
|
||||||
noname_options = options.copy()
|
noname_options = options.copy()
|
||||||
del noname_options["name"]
|
del noname_options["name"]
|
||||||
return noname_options
|
return noname_options
|
||||||
|
|
||||||
|
|
||||||
class Cache(object):
|
class Cache(object):
|
||||||
cache_file_path = os.path.join(os.getcwd(), ".prosopopee_cache")
|
cache_file_path = os.path.join(os.getcwd(), ".prosopopee_cache")
|
||||||
|
|
||||||
@ -26,7 +28,6 @@ class Cache(object):
|
|||||||
print "info: cache format as changed, prune cache"
|
print "info: cache format as changed, prune cache"
|
||||||
self.cache = {"version": CACHE_VERSION}
|
self.cache = {"version": CACHE_VERSION}
|
||||||
|
|
||||||
|
|
||||||
def needs_to_be_generated(self, source, target, options):
|
def needs_to_be_generated(self, source, target, options):
|
||||||
if not os.path.exists(target):
|
if not os.path.exists(target):
|
||||||
return True
|
return True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user