From dbecd93b7203cd187c1978de1207c29d3a9a686c Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sun, 6 Feb 2005 06:57:08 +0000 Subject: Replace list of constants with tuples of constants. --- Lib/whichdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/whichdb.py') diff --git a/Lib/whichdb.py b/Lib/whichdb.py index cc5ced3acd..f077f87531 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() -- cgit v1.2.1