Skip to content

Commit

Permalink
supress flake8 fail
Browse files Browse the repository at this point in the history
m4rc1e committed Jan 9, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent bc8f673 commit 5202592
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/glyphsLib/builder/features.py
Original file line number Diff line number Diff line change
@@ -78,7 +78,7 @@ def _is_manual_kern_feature(feature):
return feature.name == "kern" and not feature.automatic


def _to_ufo_features(
def _to_ufo_features( # noqa: C901
font: GSFont,
ufo: Font | None = None,
generate_GDEF: bool = False,
@@ -143,9 +143,9 @@ def _to_ufo_features(
for label in feature.labels:
langID = _to_name_langID(label["language"])
name = label["value"]
name = name.replace("\\", r"\005c").replace('"', r"\0022")
if name == "":
continue
name = name.replace("\\", r"\005c").replace('"', r"\0022")
if langID is None:
feature_names.append(f' name "{name}";')
else:

0 comments on commit 5202592

Please sign in to comment.