Browse Source

[fix-fstype.py] source code formatting changes = passes flake8 tests

Chris Simpkins 7 năm trước cách đây
mục cha
commit
0a01f04275
1 tập tin đã thay đổi với 8 bổ sung4 xóa
  1. 8 4
      postbuild_processing/fixes/fix-fstype.py

+ 8 - 4
postbuild_processing/fixes/fix-fstype.py

@@ -14,17 +14,20 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 #
-
 # Adapted for the Hack typeface build workflow by Chris Simpkins
-
 import os
 import sys
 from fontTools.ttLib import TTFont
 
+
 def main(argv):
     for path in argv:
         if not os.path.exists(path):
-            sys.stderr.write("[fix-fstype.py] ERROR: " + path + " is not a valid path to a font file")
+            sys.stderr.write(
+                "[fix-fstype.py] ERROR: " +
+                path +
+                " is not a valid path to a font file"
+            )
             sys.exit(1)
         else:
             font = TTFont(path)
@@ -32,5 +35,6 @@ def main(argv):
             font.save(path)
             print(path + " - successful fstype fix")
 
+
 if __name__ == '__main__':
-  main(sys.argv[1:])
+    main(sys.argv[1:])