Search:
Login
Help/Guide
About Trac
Preferences
Wiki
Timeline
Roadmap
Browse Source
View Tickets
New Ticket
Search
Context Navigation
←
Previous Change
Wiki History
Next Change
→
Changes between
Version 12
and
Version 13
of
PyYAML
View differences
inline
side by side
Show
lines around each change
Show the changes in full context
Ignore:
Blank lines
Case changes
White space changes
Timestamp:
05/25/06 11:51:01 (
7 years
ago)
Author:
cce
Comment:
Example of catching errors.
Legend:
Unmodified
Added
Removed
Modified
PyYAML
v12
v13
90
90
cost: 50000
91
91
depth: 5
92
93
>>> try: yaml.load("---\nok: key\ninvalid:key")
94
... except yaml.error.MarkedYAMLError, e:
95
... print e.problem_mark.line
96
...
97
2
98
92
99
}}}
93
100