2to3 --fix=idioms
diff --git a/Lib/fontTools/t1Lib.py b/Lib/fontTools/t1Lib.py
index d119f32..cea58c2 100644
--- a/Lib/fontTools/t1Lib.py
+++ b/Lib/fontTools/t1Lib.py
@@ -177,7 +177,7 @@
 	"""reads a PFB font file, returns raw data"""
 	f = open(path, "rb")
 	data = []
-	while 1:
+	while True:
 		if f.read(1) != chr(128):
 			raise T1Error('corrupt PFB file')
 		code = ord(f.read(1))
@@ -311,7 +311,7 @@
 
 def findEncryptedChunks(data):
 	chunks = []
-	while 1:
+	while True:
 		eBegin = string.find(data, EEXECBEGIN)
 		if eBegin < 0:
 			break