There was an error while loading. Please reload this page.
2 parents 0cd25c9 + 5c7419d commit 82710c5Copy full SHA for 82710c5
2 files changed
Lib/configparser.py
@@ -1058,8 +1058,6 @@ def _read(self, fp, fpname):
1058
if not optname:
1059
e = self._handle_error(e, fpname, lineno, line)
1060
optname = self.optionxform(optname.rstrip())
1061
- if hasattr(self, '__ping__'):
1062
- import pdb; pdb.set_trace()
1063
if (self._strict and
1064
(sectname, optname) in elements_added):
1065
raise DuplicateOptionError(sectname, optname,
Lib/test/test_configparser.py
@@ -993,7 +993,7 @@ def test_set_nonstring_types(self):
993
cf.add_section(123)
994
cf.set(123, 'this is sick', True)
995
self.assertEqual(cf.get(123, 'this is sick'), True)
996
- if cf._dict.__class__ is configparser._default_dict:
+ if cf._dict is configparser._default_dict:
997
# would not work for SortedDict; only checking for the most common
998
# default dictionary (OrderedDict)
999
cf.optionxform = lambda x: x
0 commit comments