diff options
author | Raymond Hettinger <python@rcn.com> | 2005-02-06 06:57:08 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2005-02-06 06:57:08 (GMT) |
commit | dbecd93b7203cd187c1978de1207c29d3a9a686c (patch) | |
tree | abb7331791de7b8e85208195e0c948a76cf77b67 /Lib/whichdb.py | |
parent | 07ead1731850a9f1bd353b9330341309251099b6 (diff) | |
download | cpython-dbecd93b7203cd187c1978de1207c29d3a9a686c.zip cpython-dbecd93b7203cd187c1978de1207c29d3a9a686c.tar.gz cpython-dbecd93b7203cd187c1978de1207c29d3a9a686c.tar.bz2 |
Replace list of constants with tuples of constants.
Diffstat (limited to 'Lib/whichdb.py')
-rw-r--r-- | Lib/whichdb.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/whichdb.py b/Lib/whichdb.py index cc5ced3..f077f87 100644 --- a/Lib/whichdb.py +++ b/Lib/whichdb.py @@ -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() |