Skip to content

Commit

Permalink
Fix Python 2.7 failures
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Jul 10, 2015
1 parent ac9fb53 commit acb875b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions glue/_plugin_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ def load(cls):
config = configparser.ConfigParser()
read = config.read(PLUGIN_CFG)

if len(read) == 0 or not 'plugins' in config:
if len(read) == 0 or not config.has_section('plugins'):
return cls()

plugins = {}
for key in sorted(config['plugins']):
plugins[key] = bool(int(config['plugins'][key]))
for name, enabled in config.items('plugins'):
plugins[name] = bool(int(enabled))

self = cls(plugins=plugins)

Expand Down

0 comments on commit acb875b

Please sign in to comment.