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:
Lasse Fister 2014-11-26 01:59:56 +01:00
parent 479759844c
commit 5a2a814d92

View File

@ -157,11 +157,7 @@ class UFOReader(object):
# support methods
def _checkForFile(self, path):
if not os.path.exists(path):
return False
else:
return True
_checkForFile = staticmethod(os.path.exists)
def _readPlist(self, path):
"""