Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
0896cba7
Commit
0896cba7
authored
Jul 30, 2004
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrapped the complete DateTime parser magic into try..except
for a better and unique error handling
parent
fc3032e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
lib/python/DateTime/DateTime.py
lib/python/DateTime/DateTime.py
+9
-0
No files found.
lib/python/DateTime/DateTime.py
View file @
0896cba7
...
...
@@ -497,6 +497,15 @@ class DateTime:
SyntaxError
=
SyntaxError
def
__init__
(
self
,
*
args
,
**
kw
):
"""Return a new date-time object"""
try
:
return
self
.
_parse_args
(
*
args
,
**
kw
)
except
:
raise
SyntaxError
(
'Unable to parse %s, %s'
%
(
args
,
kw
))
def
_parse_args
(
self
,
*
args
,
**
kw
):
"""Return a new date-time object
A DateTime object always maintains its value as an absolute
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment