]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
use True/False for boolean values
authorFred Drake <fdrake@acm.org>
Thu, 30 Oct 2003 15:13:41 +0000 (15:13 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 30 Oct 2003 15:13:41 +0000 (15:13 +0000)
Lib/mimetypes.py

index 5a708e32381295e02b5ad3188c53d266a25e036f..d48e2d756d783d8b680ba525060d7f58823114ba 100644 (file)
@@ -35,7 +35,7 @@ knownfiles = [
     "/usr/local/etc/mime.types",                # Apache 1.3
     ]
 
-inited = 0
+inited = False
 
 
 class MimeTypes:
@@ -208,7 +208,7 @@ def init(files=None):
     global guess_extension, guess_type
     global suffix_map, types_map, encodings_map, common_types
     global inited
-    inited = 1
+    inited = True
     db = MimeTypes()
     if files is None:
         files = knownfiles