minor: diff noise, docstrings, etc. [skip ci]
This commit is contained in:
parent
7ef045c88f
commit
032aa7b6ac
@ -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.
|
must be relative to the UFO.
|
||||||
Raises UFOLibError if the path doesn't exist.
|
Raises UFOLibError if the path doesn't exist.
|
||||||
If force=True, ignore non-existent paths.
|
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:
|
try:
|
||||||
self.fs.remove(path)
|
self.fs.remove(path)
|
||||||
|
@ -87,12 +87,7 @@ class GlyphSetTests(unittest.TestCase):
|
|||||||
def myGlyphNameToFileName(glyphName, glyphSet):
|
def myGlyphNameToFileName(glyphName, glyphSet):
|
||||||
return "prefix" + glyphNameToFileName(glyphName, glyphSet)
|
return "prefix" + glyphNameToFileName(glyphName, glyphSet)
|
||||||
src = GlyphSet(GLYPHSETDIR, validateRead=True, validateWrite=True)
|
src = GlyphSet(GLYPHSETDIR, validateRead=True, validateWrite=True)
|
||||||
dst = GlyphSet(
|
dst = GlyphSet(self.dstDir, myGlyphNameToFileName, validateRead=True, validateWrite=True)
|
||||||
self.dstDir,
|
|
||||||
glyphNameToFileNameFunc=myGlyphNameToFileName,
|
|
||||||
validateRead=True,
|
|
||||||
validateWrite=True,
|
|
||||||
)
|
|
||||||
for glyphName in src.keys():
|
for glyphName in src.keys():
|
||||||
g = src[glyphName]
|
g = src[glyphName]
|
||||||
g.drawPoints(None) # load attrs
|
g.drawPoints(None) # load attrs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user