FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pyt/example/example_inputs/try.py at mango · python-security/pyt · GitHub
python-security
pyt
Repository navigation
Code
Issues
26
(26)
Pull requests
2
(2)
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
pyt
/
example
/
example_inputs
/
try.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
17 lines (16 loc) · 643 Bytes
Breadcrumbs
pyt
/
example
/
example_inputs
/
try.py
Copy path
File metadata and controls
17 lines (16 loc) · 643 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
try
:
value
=
None
except
ImportError
:
value
=
1
"""
if node.orelse:
orelse_last_nodes = self.handle_or_else(node.orelse, try_node)
body.last_statements.extend(orelse_last_nodes)
else:
body.last_statements.append(try_node) # if there is no orelse, test needs an edge to the next_node
if node.finalbody:
finalbody_last_nodes = self.handle_or_else(node.finalbody, try_node)
body.last_statements.extend(finalbody_last_nodes)
else:
body.last_statements.append(try_node) # if there is no orelse, test needs an edge to the next_node
"""
Back
|
FazBrowse Home
|
New Git URL