summaryrefslogtreecommitdiff
path: root/examples/datetimeParseActions.py
diff options
context:
space:
mode:
authorPaul McGuire <ptmcg@users.noreply.github.com>2018-12-23 21:30:40 -0600
committerGitHub <noreply@github.com>2018-12-23 21:30:40 -0600
commit4fba64a079016e6ea62d041f19b7eadd081341e8 (patch)
tree6c5fdae41cf8b335ff1c64f37856786523e4fd0d /examples/datetimeParseActions.py
parent59dfd314c23fd653271bdad37631f0497e8ad748 (diff)
parentde8326d00dffdb500c02839a98330b869c2457f3 (diff)
downloadpyparsing-git-4fba64a079016e6ea62d041f19b7eadd081341e8.tar.gz
Merge pull request #55 from jdufresne/ws
Trim trailing white space throughout the project
Diffstat (limited to 'examples/datetimeParseActions.py')
-rw-r--r--examples/datetimeParseActions.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/datetimeParseActions.py b/examples/datetimeParseActions.py
index e42d2c6..aa9e016 100644
--- a/examples/datetimeParseActions.py
+++ b/examples/datetimeParseActions.py
@@ -37,16 +37,16 @@ date_expr.setParseAction(convertToDatetime)
date_expr.runTests("""\
- 2000/1/1
+ 2000/1/1
# invalid month
- 2000/13/1
+ 2000/13/1
# 1900 was not a leap year
- 1900/2/29
+ 1900/2/29
# but 2000 was
- 2000/2/29
+ 2000/2/29
""")
@@ -55,14 +55,14 @@ date_expr = pyparsing_common.iso8601_date.setParseAction(pyparsing_common.conver
date_expr.ignore(pythonStyleComment)
date_expr.runTests("""\
- 2000-01-01
+ 2000-01-01
# invalid month
- 2000-13-01
+ 2000-13-01
# 1900 was not a leap year
- 1900-02-29
+ 1900-02-29
# but 2000 was
- 2000-02-29
- """) \ No newline at end of file
+ 2000-02-29
+ """)