We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee2ab57 commit 02d1260Copy full SHA for 02d1260
bpython/config.py
@@ -4,12 +4,16 @@
4
import os
5
import sys
6
import locale
7
-from ConfigParser import ConfigParser
8
from itertools import chain
9
from bpython.keys import cli_key_dispatch as key_dispatch
10
from bpython.autocomplete import SIMPLE as default_completion
11
import bpython.autocomplete
12
+try:
13
+ from configparser import ConfigParser
14
+except ImportError:
15
+ from ConfigParser import ConfigParser
16
+
17
18
class Struct(object):
19
"""Simple class for instantiating objects we can add arbitrary attributes
0 commit comments