summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2018-01-07 14:49:37 -0500
committerGitHub <noreply@github.com>2018-01-07 14:49:37 -0500
commite6672fe278b877c82f8d011281b17dcf2654d257 (patch)
treece17ec63281bb45bd3c4b38b1b1eebc4514a79df /cmd2.py
parent2a474dc8f13a3a4558136215a7a1706ba13ba732 (diff)
parent2244cb09264de050d072ebf1136a6d575d111a8b (diff)
downloadcmd2-git-e6672fe278b877c82f8d011281b17dcf2654d257.tar.gz
Merge pull request #246 from python-cmd2/python_3.7
Enabled Python 3.7 testing on Travis CI
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/cmd2.py b/cmd2.py
index 73ad491d..fdd0c0a0 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -106,7 +106,7 @@ if six.PY2 and sys.platform.startswith('lin'):
except ImportError:
pass
-__version__ = '0.7.9'
+__version__ = '0.8.0a'
# Pyparsing enablePackrat() can greatly speed up parsing, but problems have been seen in Python 3 in the past
pyparsing.ParserElement.enablePackrat()
@@ -2399,18 +2399,18 @@ class Cmd2TestCase(unittest.TestCase):
def _transform_transcript_expected(self, s):
"""parse the string with slashed regexes into a valid regex
-
+
Given a string like:
-
+
Match a 10 digit phone number: /\d{3}-\d{3}-\d{4}/
-
+
Turn it into a valid regular expression which matches the literal text
of the string and the regular expression. We have to remove the slashes
because they differentiate between plain text and a regular expression.
Unless the slashes are escaped, in which case they are interpreted as
plain text, or there is only one slash, which is treated as plain text
also.
-
+
Check the tests in tests/test_transcript.py to see all the edge
cases.
"""