File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 1919# Licensed under the Eiffel Forum License 2.
2020from __future__ import generator_stop
2121
22+ import configparser
2223import os
2324import re
2425import tempfile
2526
26- try :
27- import ConfigParser
28- except ImportError :
29- import configparser as ConfigParser
30-
3127from sopel import bot , config , tools
3228
3329
@@ -46,7 +42,7 @@ class MockConfig(config.Config):
4642 @tools .deprecated ('use configfactory fixture instead' , '7.0' , '8.0' )
4743 def __init__ (self ):
4844 self .filename = tempfile .mkstemp ()[1 ]
49- self .parser = ConfigParser .RawConfigParser (allow_no_value = True )
45+ self .parser = configparser .RawConfigParser (allow_no_value = True )
5046 self .parser .add_section ('core' )
5147 self .parser .set ('core' , 'owner' , 'Embolalia' )
5248 self .define_section ('core' , config .core_section .CoreSection )
You can’t perform that action at this time.
0 commit comments