Define UFOReader._checkForFile as an alias of os.path.exists
Maybe we should rather replace it with os.path.exists, as this would make the code easier to read. Also os.path.exists is already used very often in ufoLib.__init__
This commit is contained in:
parent
479759844c
commit
5a2a814d92
@ -157,11 +157,7 @@ class UFOReader(object):
|
|||||||
|
|
||||||
# support methods
|
# support methods
|
||||||
|
|
||||||
def _checkForFile(self, path):
|
_checkForFile = staticmethod(os.path.exists)
|
||||||
if not os.path.exists(path):
|
|
||||||
return False
|
|
||||||
else:
|
|
||||||
return True
|
|
||||||
|
|
||||||
def _readPlist(self, path):
|
def _readPlist(self, path):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user