Skip to content

Commit 81eb0a5

Browse files
committed
Replace loadini with a Config object
1 parent 2240883 commit 81eb0a5

File tree

7 files changed

+293
-301
lines changed

7 files changed

+293
-301
lines changed

bpython/args.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
from pathlib import Path
3939

4040
from . import __version__, __copyright__
41-
from .config import default_config_path, loadini, Struct
41+
from .config import default_config_path, Config
4242
from .translations import _
4343

4444
logger = logging.getLogger(__name__)
@@ -210,10 +210,7 @@ def callback(group):
210210
)
211211
)
212212

213-
config = Struct()
214-
loadini(config, options.config)
215-
216-
return config, options, options.args
213+
return Config(options.config), options, options.args
217214

218215

219216
def exec_code(interpreter, args):

0 commit comments

Comments
 (0)