summaryrefslogtreecommitdiff
path: root/examples/datetimeParseActions.py
diff options
context:
space:
mode:
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
+ """)