Skip to content

Conversation

@kmvanbrunt
Copy link
Member

@kmvanbrunt kmvanbrunt commented Oct 30, 2019

Fixed bug where setting use_ipython to False removed ipy command from the entire cmd2.Cmd class instead of just the instance being created
Fixes #792

@codecov
Copy link

codecov bot commented Oct 30, 2019

Codecov Report

Merging #794 into master will decrease coverage by 0.05%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #794      +/-   ##
==========================================
- Coverage   96.99%   96.93%   -0.06%     
==========================================
  Files          14       14              
  Lines        3490     3490              
==========================================
- Hits         3385     3383       -2     
- Misses        105      107       +2
Impacted Files Coverage Δ
cmd2/cmd2.py 96.67% <100%> (-0.11%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 23cfa3e...8056c5b. Read the comment docs.

@kmvanbrunt kmvanbrunt changed the title Ipy fix ipy fix Oct 30, 2019
if not use_ipython:
try:
del Cmd.do_ipy
self.do_ipy = None
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like a better way to deal with it, good call

@tleonhardt tleonhardt merged commit 406f017 into master Oct 31, 2019
@tleonhardt tleonhardt deleted the ipy_fix branch October 31, 2019 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

use_ipython = False should not delete do_ipy from the class

3 participants