Show More
@@ -434,13 +434,7 b' def check_for_old_config(ipython_dir=None):' | |||||
434 | if filehash(f) == old_config_md5.get(cfg, ''): |
|
434 | if filehash(f) == old_config_md5.get(cfg, ''): | |
435 | os.unlink(f) |
|
435 | os.unlink(f) | |
436 | else: |
|
436 | else: | |
437 | oldf = f+'.old' |
|
437 | warn.warn("Found old IPython config file %r (modified by user)"%f) | |
438 | i = 0 |
|
|||
439 | while os.path.exists(oldf): |
|
|||
440 | oldf = f+'.old.%i'%i |
|
|||
441 | i += 1 |
|
|||
442 | os.rename(f, oldf) |
|
|||
443 | warn.warn("Renamed old IPython config file '%s' to '%s'." % (f, oldf)) |
|
|||
444 | warned = True |
|
438 | warned = True | |
445 |
|
439 | |||
446 | if warned: |
|
440 | if warned: | |
@@ -451,6 +445,6 b' def check_for_old_config(ipython_dir=None):' | |||||
451 | To start configuring IPython, do `ipython profile create`, and edit |
|
445 | To start configuring IPython, do `ipython profile create`, and edit | |
452 | `ipython_config.py` in <ipython_dir>/profile_default. |
|
446 | `ipython_config.py` in <ipython_dir>/profile_default. | |
453 | If you need to leave the old config files in place for an older version of |
|
447 | If you need to leave the old config files in place for an older version of | |
454 | IPython, set `c.InteractiveShellApp.ignore_old_config=True` in the new config.""") |
|
448 | IPython and want to suppress this warning message, set | |
455 |
|
449 | `c.InteractiveShellApp.ignore_old_config=True` in the new config.""") | ||
456 |
|
450 |
General Comments 0
You need to be logged in to leave comments.
Login now