Skip to content

Fixed case where extra slash was printing when tab completing users on Windows #493

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 1, 2018

Conversation

kmvanbrunt
Copy link
Member

I have fixed this same bug in the Python 3 version. That will be in a later pull request.

@kmvanbrunt kmvanbrunt requested a review from tleonhardt as a code owner August 1, 2018 07:18
@codecov
Copy link

codecov bot commented Aug 1, 2018

Codecov Report

Merging #493 into python2 will decrease coverage by 0.12%.
The diff coverage is 0%.

Impacted file tree graph

@@             Coverage Diff             @@
##           python2     #493      +/-   ##
===========================================
- Coverage    89.81%   89.68%   -0.13%     
===========================================
  Files            1        1              
  Lines         2091     2094       +3     
===========================================
  Hits          1878     1878              
- Misses         213      216       +3
Impacted Files Coverage Δ
cmd2.py 89.68% <0%> (-0.13%) ⬇️

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 3ec6cea...4b27024. Read the comment docs.

Copy link
Member

@tleonhardt tleonhardt left a comment

Choose a reason for hiding this comment

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

Bump version to 0.8.9 in this PR

CHANGELOG.md Outdated
@@ -1,4 +1,8 @@
## 0.8.8 (TBD, 2018)
## 0.8.9 (TBD 2018)
Copy link
Member

Choose a reason for hiding this comment

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

Recommend putting this as (August TBD, 2018) since we officially abandon support for Python 2.7 on August 31, 2018.

Also, since this is prepping for the 0.8.9 release for Python 2.7, you should bump the version number to 0.8.9 in this PR in all 4 required places:

  • setup.py
  • cmd2.py
  • docs/conf.py
  • tests/test_cmd2.py

NOTE: On master now, we have completely changed the version scheme so there is no explicit version number anymore (it is based on the Git Tag).

# resolves to an existing home directory.
if sys.platform.startswith('win'):
expanded_path = os.path.expanduser(text)
if os.path.isdir(expanded_path):
users.append(text + os.path.sep)
user = text
Copy link
Member

Choose a reason for hiding this comment

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

This looks reasonable

@tleonhardt
Copy link
Member

Ignore the VSTS build for this PR - it isn't setup to install mock since it is currently only building for Python 3.7 where that isn't needed.

@tleonhardt
Copy link
Member

Consider if it would make sense to add a unit test for the new code

@@ -229,7 +229,7 @@ def pyreadline_remove_history_item(pos):
pass


__version__ = '0.8.8'
__version__ = '0.8.9'
Copy link
Member

Choose a reason for hiding this comment

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

Looks good to me

@kmvanbrunt kmvanbrunt merged commit 54cd5f7 into python2 Aug 1, 2018
@tleonhardt tleonhardt added the bug label Aug 1, 2018
@tleonhardt tleonhardt added this to the 0.8.9 milestone Aug 1, 2018
@tleonhardt tleonhardt deleted the extra_slash branch August 1, 2018 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants