Replace list of constants with tuples of constants.

This commit is contained in:
Raymond Hettinger 2005-02-06 06:57:08 +00:00
parent 07ead17318
commit dbecd93b72
11 changed files with 29 additions and 29 deletions

View file

@ -62,7 +62,7 @@ def whichdb(filename):
return "dumbdbm"
f = open(filename + os.extsep + "dir", "rb")
try:
if f.read(1) in ["'", '"']:
if f.read(1) in ("'", '"'):
return "dumbdbm"
finally:
f.close()