File tree Expand file tree Collapse file tree 5 files changed +14
-7
lines changed Expand file tree Collapse file tree 5 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 1
- ## 0.8.8 (TBD, 2018)
1
+ ## 0.8.9 (August TBD, 2018)
2
+ * Bug Fixes
3
+ * Fixed extra slash that could print when tab completing users on Windows
4
+
5
+ ## 0.8.8 (June 28, 2018)
2
6
* Bug Fixes
3
7
* Prevent crashes that could occur attempting to open a file in non-existent directory or with very long filename
4
8
* Enhancements
Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ def pyreadline_remove_history_item(pos):
229
229
pass
230
230
231
231
232
- __version__ = '0.8.8 '
232
+ __version__ = '0.8.9 '
233
233
234
234
# Pyparsing enablePackrat() can greatly speed up parsing, but problems have been seen in Python 3 in the past
235
235
pyparsing .ParserElement .enablePackrat ()
@@ -1694,12 +1694,15 @@ def complete_users():
1694
1694
users = []
1695
1695
1696
1696
# Windows lacks the pwd module so we can't get a list of users.
1697
- # Instead we will add a slash once the user enters text that
1697
+ # Instead we will return a result once the user enters text that
1698
1698
# resolves to an existing home directory.
1699
1699
if sys .platform .startswith ('win' ):
1700
1700
expanded_path = os .path .expanduser (text )
1701
1701
if os .path .isdir (expanded_path ):
1702
- users .append (text + os .path .sep )
1702
+ user = text
1703
+ if add_trailing_sep_if_dir :
1704
+ user += os .path .sep
1705
+ users .append (user )
1703
1706
else :
1704
1707
import pwd
1705
1708
Original file line number Diff line number Diff line change 62
62
# The short X.Y version.
63
63
version = '0.8'
64
64
# The full version, including alpha/beta/rc tags.
65
- release = '0.8.8 '
65
+ release = '0.8.9 '
66
66
67
67
# The language for content autogenerated by Sphinx. Refer to documentation
68
68
# for a list of supported languages.
Original file line number Diff line number Diff line change 8
8
import setuptools
9
9
from setuptools import setup
10
10
11
- VERSION = '0.8.8 '
11
+ VERSION = '0.8.9 '
12
12
DESCRIPTION = "cmd2 - a tool for building interactive command line applications in Python"
13
13
LONG_DESCRIPTION = """cmd2 is a tool for building interactive command line applications in Python. Its goal is to make
14
14
it quick and easy for developers to build feature-rich and user-friendly interactive command line applications. It
Original file line number Diff line number Diff line change 26
26
27
27
28
28
def test_ver ():
29
- assert cmd2 .__version__ == '0.8.8 '
29
+ assert cmd2 .__version__ == '0.8.9 '
30
30
31
31
32
32
def test_empty_statement (base_app ):
You can’t perform that action at this time.
0 commit comments