Skip to content

Commit

Permalink
Merge pull request #173 from dkliban/815
Browse files Browse the repository at this point in the history
Fixes #815 - db is not a dict as flake8 assumed
  • Loading branch information
dkliban committed Mar 25, 2015
2 parents 6c72fdc + 55be4f3 commit 7504b90
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -316,7 +316,8 @@ def _generate_dependency_data(self, modules):
author = module.unit_key['author']
key = '%s/%s' % (author, name)

if key in db:
# db is not a dictionary as assumed by flake8
if db.has_key(key): # noqa
module_list = json.loads(db[key])
else:
module_list = []
Expand Down

0 comments on commit 7504b90

Please sign in to comment.