Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ProfiT-HPC
aggregator
Commits
eee5e9d3
Commit
eee5e9d3
authored
Jul 01, 2020
by
Azat Khuziyakhmetov
Browse files
minor fix
parent
879ad80b
Changes
1
Hide whitespace changes
Inline
Side-by-side
rcm/helpers.py
View file @
eee5e9d3
...
...
@@ -25,15 +25,15 @@ def accepts(*types, **kw):
try
:
def
decorator
(
f
):
def
newf
(
*
args
):
if
debug
is
0
:
if
debug
==
0
:
return
f
(
*
args
)
assert
len
(
args
)
==
len
(
types
)
argtypes
=
tuple
(
map
(
type
,
args
))
if
argtypes
!=
types
:
msg
=
info
(
f
.
__name__
,
types
,
argtypes
,
0
)
if
debug
is
1
:
if
debug
==
1
:
print
>>
sys
.
stderr
,
'TypeWarning: '
,
msg
elif
debug
is
2
:
elif
debug
==
2
:
raise
TypeError
(
msg
)
return
f
(
*
args
)
newf
.
__name__
=
f
.
__name__
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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