Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
2f0a2384
Commit
2f0a2384
authored
9 years ago
by
Dmitry Trofimov
Browse files
Options
Download
Email Patches
Plain Diff
Remove redundancy
parent
6eed7a81
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python/helpers/pydev/_pydevd_bundle/pydevd_signature.py
+3
-11
python/helpers/pydev/_pydevd_bundle/pydevd_signature.py
with
3 additions
and
11 deletions
+3
-11
python/helpers/pydev/_pydevd_bundle/pydevd_signature.py
+
3
-
11
View file @
2f0a2384
...
...
@@ -133,21 +133,13 @@ class CallSignatureCache(object):
def
add
(
self
,
signature
):
filename
,
name
,
args_type
=
get_signature_info
(
signature
)
if
not
filename
in
self
.
cache
:
self
.
cache
[
filename
]
=
{}
calls_from_file
=
self
.
cache
[
filename
]
if
not
name
in
calls_from_file
:
calls_from_file
[
name
]
=
{}
name_calls
=
calls_from_file
[
name
]
calls_from_file
=
self
.
cache
.
setdefault
(
filename
,
{})
name_calls
=
calls_from_file
.
setdefault
(
name
,
{})
name_calls
[
args_type
]
=
None
def
is_in_cache
(
self
,
signature
):
filename
,
name
,
args_type
=
get_signature_info
(
signature
)
if
filename
in
self
.
cache
and
name
in
self
.
cache
[
filename
]
and
args_type
in
self
.
cache
[
filename
][
name
]
:
if
args_type
in
self
.
cache
.
get
(
filename
,
{}).
get
(
name
,
{})
:
return
True
return
False
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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