Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
879774e5
Commit
879774e5
authored
Oct 26, 2019
by
da-woods
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed try-catch
parent
073f25c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+5
-7
No files found.
Cython/Compiler/ExprNodes.py
View file @
879774e5
...
...
@@ -1962,11 +1962,10 @@ class NameNode(AtomicExprNode):
entry
=
env
.
lookup
(
self
.
name
)
if
entry
and
entry
.
is_type
:
if
entry
.
type
.
is_fused
and
env
.
fused_to_specific
:
try
:
if
entry
.
type
in
env
.
fused_to_specific
:
return
entry
.
type
.
specialize
(
env
.
fused_to_specific
)
except
KeyError
:
pass
# lots of valid reasons why we may not be able to get a specific type
# so don't fail
# else lots of valid reasons why we may not be able to get a specific type
# so don't fail
return
entry
.
type
else
:
return
None
...
...
@@ -6916,10 +6915,9 @@ class AttributeNode(ExprNode):
if
base_type
and
hasattr
(
base_type
,
'scope'
)
and
base_type
.
scope
is
not
None
:
tp
=
base_type
.
scope
.
lookup_type
(
self
.
attribute
)
if
tp
and
tp
.
is_fused
and
env
.
fused_to_specific
:
try
:
if
tp
in
env
.
fused_to_specific
:
tp
=
tp
.
specialize
(
env
.
fused_to_specific
)
except
KeyError
:
pass
# just use unspecialized type
# else just use unspecialized type
return
tp
def
analyse_as_extension_type
(
self
,
env
):
...
...
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