python-modernize -f libmodernize.fixes.fix_imports_six
This commit is contained in:
parent
f03646bab5
commit
be535c2854
21 changed files with 81 additions and 81 deletions
|
|
@ -1,6 +1,6 @@
|
|||
from __future__ import absolute_import
|
||||
import sys
|
||||
import ConfigParser
|
||||
import six.moves.configparser
|
||||
import koji
|
||||
from koji.context import context
|
||||
from koji.plugin import export
|
||||
|
|
@ -29,7 +29,7 @@ def saveFailedTree(buildrootID, full=False, **opts):
|
|||
|
||||
# read configuration only once
|
||||
if config is None:
|
||||
config = ConfigParser.SafeConfigParser()
|
||||
config = six.moves.configparser.SafeConfigParser()
|
||||
config.read(CONFIG_FILE)
|
||||
allowed_methods = config.get('permissions', 'allowed_methods').split()
|
||||
if len(allowed_methods) == 1 and allowed_methods[0] == '*':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue