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
6ce8f80d
Commit
6ce8f80d
authored
Jul 05, 2019
by
gsamain
Committed by
Xavier Thompson
Aug 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
handle the no type => pyobj case fot lock getters
parent
a6377482
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+4
-4
No files found.
Cython/Compiler/ExprNodes.py
View file @
6ce8f80d
...
...
@@ -743,10 +743,10 @@ class ExprNode(Node):
return
self
.
tracked_state
.
needs_wlock
def
is_autolock
(
self
):
return
self
.
type
.
is_cyp_class
and
self
.
type
.
lock_mode
==
"autolock"
return
self
.
type
is
not
None
and
self
.
type
.
is_cyp_class
and
self
.
type
.
lock_mode
==
"autolock"
def
is_checklock
(
self
):
return
self
.
type
.
is_cyp_class
and
self
.
type
.
lock_mode
==
"checklock"
return
self
.
type
is
not
None
and
self
.
type
.
is_cyp_class
and
self
.
type
.
lock_mode
==
"checklock"
def
get_tracked_state
(
self
,
env
):
if
not
hasattr
(
self
,
'entry'
)
or
not
self
.
entry
or
not
self
.
entry
.
type
.
is_cyp_class
:
...
...
@@ -758,14 +758,14 @@ class ExprNode(Node):
env
.
declare_autolocked
(
self
)
def
is_rhs_locked
(
self
,
env
):
if
not
hasattr
(
self
,
'entry'
)
or
not
self
.
entry
.
type
.
is_cyp_class
:
if
not
hasattr
(
self
,
'entry'
)
or
self
.
entry
.
type
is
None
or
not
self
.
entry
.
type
.
is_cyp_class
:
# These nodes couldn't be tracked (because it is for example a constant),
# so we let them pass silently
return
True
return
self
.
tracked_state
.
is_rlocked
or
self
.
tracked_state
.
is_wlocked
def
is_lhs_locked
(
self
,
env
):
if
not
hasattr
(
self
,
'entry'
)
or
not
self
.
entry
.
type
.
is_cyp_class
:
if
not
hasattr
(
self
,
'entry'
)
or
self
.
entry
.
type
is
None
or
not
self
.
entry
.
type
.
is_cyp_class
:
# These nodes couldn't be tracked (because it is for example a constant),
# so we let them pass silently
return
True
...
...
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