minor: diff noise, docstrings, etc. [skip ci]

This commit is contained in:
Cosimo Lupo 2018-10-09 15:12:19 +01:00
parent 7ef045c88f
commit 032aa7b6ac
No known key found for this signature in database
GPG Key ID: 59D54DB0C9976482
2 changed files with 4 additions and 7 deletions

View File

@ -95,7 +95,7 @@ class UFOFileStructure(enum.Enum):
# --------------
# Shared methods
# Shared Methods
# --------------
@ -1052,6 +1052,8 @@ class UFOWriter(object):
must be relative to the UFO.
Raises UFOLibError if the path doesn't exist.
If force=True, ignore non-existent paths.
If the directory where 'path' is located becomes empty, it will
be automatically removed, unless 'removeEmptyParents' is False.
"""
try:
self.fs.remove(path)

View File

@ -87,12 +87,7 @@ class GlyphSetTests(unittest.TestCase):
def myGlyphNameToFileName(glyphName, glyphSet):
return "prefix" + glyphNameToFileName(glyphName, glyphSet)
src = GlyphSet(GLYPHSETDIR, validateRead=True, validateWrite=True)
dst = GlyphSet(
self.dstDir,
glyphNameToFileNameFunc=myGlyphNameToFileName,
validateRead=True,
validateWrite=True,
)
dst = GlyphSet(self.dstDir, myGlyphNameToFileName, validateRead=True, validateWrite=True)
for glyphName in src.keys():
g = src[glyphName]
g.drawPoints(None) # load attrs