Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit c1bfc70

Browse files
committed
[ckan#4801] Fix configparser imports
1 parent 35298a2 commit c1bfc70

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

ckan/lib/fanstatic_resources.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
import os.path
44
import sys
55
import logging
6-
import configparser
6+
7+
from six.moves.configparser import RawConfigParser
8+
79
from ckan.common import config
810

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

133135
if config.has_option('main', 'order'):

scripts/4042_fix_resource_extras.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
'''
2929

3030
import json
31-
from configparser import ConfigParser
31+
from six.moves.configparser import ConfigParser
3232
from argparse import ArgumentParser
3333
from six.moves import input
3434
from sqlalchemy import create_engine

0 commit comments

Comments
 (0)