Skip to content

Commit

Permalink
[#4801] Fix configparser imports
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Dec 3, 2019
1 parent f93fc06 commit 99fcae4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions ckan/lib/fanstatic_resources.py
Expand Up @@ -3,7 +3,9 @@
import os.path
import sys
import logging
import configparser

from six.moves.configparser import RawConfigParser

from ckan.common import config

from fanstatic import Library, Resource, Group, get_library_registry
Expand Down Expand Up @@ -127,7 +129,7 @@ def create_resource(path, lib_name, count, inline=False, supersedes=None):
# parse the resource.config file if it exists
config_path = os.path.join(resource_path, 'resource.config')
if os.path.exists(config_path):
config = configparser.RawConfigParser()
config = RawConfigParser()
config.read(config_path)

if config.has_option('main', 'order'):
Expand Down
2 changes: 1 addition & 1 deletion scripts/4042_fix_resource_extras.py
Expand Up @@ -28,7 +28,7 @@
'''

import json
from configparser import ConfigParser
from six.moves.configparser import ConfigParser
from argparse import ArgumentParser
from six.moves import input
from sqlalchemy import create_engine
Expand Down

0 comments on commit 99fcae4

Please sign in to comment.