mirror of
https://github.com/python/cpython.git
synced 2025-07-21 18:25:22 +00:00
Replace list of constants with tuples of constants.
This commit is contained in:
parent
07ead17318
commit
dbecd93b72
11 changed files with 29 additions and 29 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue