Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
my2to3
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Bryton Lacquement
my2to3
Commits
4901356b
Commit
4901356b
authored
Aug 03, 2020
by
Bryton Lacquement
🚪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nested_except_trace: remove indendation from example
... to facilitate copy and paste in a REPL.
parent
a9abdb90
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
my2to3/fixes/fix_nested_except_trace.py
my2to3/fixes/fix_nested_except_trace.py
+11
-11
No files found.
my2to3/fixes/fix_nested_except_trace.py
View file @
4901356b
...
@@ -9,25 +9,25 @@ class FixNestedExceptTrace(BaseStaticTraceFix):
...
@@ -9,25 +9,25 @@ class FixNestedExceptTrace(BaseStaticTraceFix):
Try the following two snippets yourself in Python 2 and Python 3...
Try the following two snippets yourself in Python 2 and Python 3...
try:
raise Exception("foo")
except Exception as e:
try:
try:
raise Exception("
foo
")
raise Exception("
bar
")
except Exception as e:
except Exception as e:
try:
raise Exception("bar")
except Exception as e:
print(e)
print(e)
print(e)
print(e)
---
---
try:
raise Exception("foo")
except Exception as e:
try:
try:
raise Exception("
foo
")
raise Exception("
bar
")
except Exception as e:
except Exception as e:
try:
print(e)
raise Exception("bar")
raise
except Exception as e:
print(e)
raise
"""
"""
basename
=
"nested_except"
basename
=
"nested_except"
traced_information
=
"lineno_parent"
,
"lineno_child"
traced_information
=
"lineno_parent"
,
"lineno_child"
...
...
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