We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39060d5 commit fc01c4bCopy full SHA for fc01c4b
DBUtils/Examples/DBUtilsExample.py
@@ -46,10 +46,10 @@ class DBUtilsExample(ExamplePage):
46
dbapi_name = config.pop('dbapi', 'pg')
47
if dbapi_name == 'pg': # use the PyGreSQL classic DB API
48
dbmod_name += 'Pg'
49
- if config.has_key('database'):
+ if 'datanbase' in config:
50
config['dbname'] = config['database']
51
del config['database']
52
- if config.has_key('password'):
+ if 'password' in config:
53
config['passwd'] = config['password']
54
del config['password']
55
else: # use a DB-API 2 compliant module
@@ -231,7 +231,7 @@ def listAttendees(self):
231
places = {}
232
for i in id:
233
i = i[:4].rstrip()
234
- if places.has_key(i):
+ if i in places:
235
places[i] += 1
236
else:
237
places[i] = 1
0 commit comments