Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit81eb0a5

Browse files
committed
Replace loadini with a Config object
1 parent2240883 commit81eb0a5

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
frompathlibimportPath
3939

4040
from .import__version__,__copyright__
41-
from .configimportdefault_config_path,loadini,Struct
41+
from .configimportdefault_config_path,Config
4242
from .translationsimport_
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-
returnconfig,options,options.args
213+
returnConfig(options.config),options,options.args
217214

218215

219216
defexec_code(interpreter,args):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp