Skip to content

Commit

Permalink
[#4801] Rename configparser module
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Nov 28, 2019
1 parent aa2a57e commit 690a33f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ckan/lib/fanstatic_resources.py
Expand Up @@ -3,7 +3,7 @@
import os.path
import sys
import logging
import ConfigParser
import configparser
from ckan.common import config

from fanstatic import Library, Resource, Group, get_library_registry
Expand Down Expand Up @@ -127,7 +127,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 = configparser.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 configparser import ConfigParser
from argparse import ArgumentParser
from six.moves import input
from sqlalchemy import create_engine
Expand Down

0 comments on commit 690a33f

Please sign in to comment.