From 54dc6b2dccfbdfc128b9396ca9d1d74142d25f84 Mon Sep 17 00:00:00 2001 From: Nikolaus Waxweiler Date: Mon, 9 Sep 2019 22:31:08 +0100 Subject: [PATCH] Minor: adjust docstring --- Lib/fontTools/ufoLib/glifLib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/fontTools/ufoLib/glifLib.py b/Lib/fontTools/ufoLib/glifLib.py index 3c48a664c..3145c0992 100755 --- a/Lib/fontTools/ufoLib/glifLib.py +++ b/Lib/fontTools/ufoLib/glifLib.py @@ -622,8 +622,8 @@ def _writeGlyphToBytes( def writeGlyphToString(glyphName, glyphObject=None, drawPointsFunc=None, formatVersion=2, validate=True): """ - Return .glif data for a glyph as a Unicode string (`unicode` in py2, `str` - in py3). The XML declaration's encoding is always set to "UTF-8". + Return .glif data for a glyph as a string. The XML declaration's + encoding is always set to "UTF-8". The 'glyphObject' argument can be any kind of object (even None); the writeGlyphToString() method will attempt to get the following attributes from it: