revert py2 portion of mr#4214
See https://pagure.io/koji/pull-request/4214
This commit is contained in:
parent
91ec3d58e4
commit
60761e6936
1 changed files with 1 additions and 3 deletions
|
|
@ -25,7 +25,6 @@
|
|||
from __future__ import absolute_import, division
|
||||
|
||||
import base64
|
||||
import codecs
|
||||
import datetime
|
||||
import errno
|
||||
import hashlib
|
||||
|
|
@ -2343,8 +2342,7 @@ def read_config_files(config_files, raw=False):
|
|||
if six.PY3:
|
||||
config.read(cfgs, encoding="utf8")
|
||||
else:
|
||||
for cfg in cfgs:
|
||||
config.readfp(codecs.open(cfg, 'r', 'utf8'))
|
||||
config.read(cfgs)
|
||||
return config
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue