Use True/False instead of 1/0
diff --git a/Lib/fontTools/ttx.py b/Lib/fontTools/ttx.py
index aa5655e..0efa0c0 100644
--- a/Lib/fontTools/ttx.py
+++ b/Lib/fontTools/ttx.py
@@ -100,16 +100,16 @@
class Options:
- listTables = 0
+ listTables = False
outputDir = None
outputFile = None
- verbose = 0
- quiet = 0
- splitTables = 0
- disassembleInstructions = 1
+ verbose = False
+ quiet = False
+ splitTables = False
+ disassembleInstructions = True
mergeFile = None
- recalcBBoxes = 1
- allowVID = 0
+ recalcBBoxes = True
+ allowVID = False
ignoreDecompileErrors = True
bitmapGlyphDataFormat = 'raw'
@@ -130,20 +130,20 @@
elif option == "-o":
self.outputFile = value
elif option == "-v":
- self.verbose = 1
+ self.verbose = True
elif option == "-q":
- self.quiet = 1
+ self.quiet = True
# dump options
elif option == "-l":
- self.listTables = 1
+ self.listTables = True
elif option == "-t":
self.onlyTables.append(value)
elif option == "-x":
self.skipTables.append(value)
elif option == "-s":
- self.splitTables = 1
+ self.splitTables = True
elif option == "-i":
- self.disassembleInstructions = 0
+ self.disassembleInstructions = False
elif option == "-z":
validOptions = ('raw', 'row', 'bitwise', 'extfile')
if value not in validOptions:
@@ -156,9 +156,9 @@
elif option == "-m":
self.mergeFile = value
elif option == "-b":
- self.recalcBBoxes = 0
+ self.recalcBBoxes = False
elif option == "-a":
- self.allowVID = 1
+ self.allowVID = True
elif option == "-e":
self.ignoreDecompileErrors = False
if self.onlyTables and self.skipTables:
@@ -198,9 +198,9 @@
ignoreDecompileErrors=options.ignoreDecompileErrors,
fontNumber=options.fontNumber)
ttf.saveXML(output,
- quiet=options.quiet,
+ quiet=options.quiet,
tables=options.onlyTables,
- skipTables=options.skipTables,
+ skipTables=options.skipTables,
splitTables=options.splitTables,
disassembleInstructions=options.disassembleInstructions,
bitmapGlyphDataFormat=options.bitmapGlyphDataFormat)