mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-09 22:21:30 +00:00
Another Python 2.6 patch
This commit is contained in:
3
thirdparty/bottle/bottle.py
vendored
3
thirdparty/bottle/bottle.py
vendored
@@ -2345,8 +2345,7 @@ class ConfigDict(dict):
|
||||
represent namespaces (see :meth:`load_dict`).
|
||||
"""
|
||||
config_obj = load(path)
|
||||
obj = {key: getattr(config_obj, key) for key in dir(config_obj)
|
||||
if key.isupper()}
|
||||
obj = dict([(key, getattr(config_obj, key)) for key in dir(config_obj) if key.isupper()])
|
||||
|
||||
if squash:
|
||||
self.load_dict(obj)
|
||||
|
||||
Reference in New Issue
Block a user