Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
dmt
Commits
f9059e58
Commit
f9059e58
authored
Jun 24, 2016
by
Thanassis Tsiodras
Browse files
[PyCharm Inspector] ABC methods could indeed be static
parent
f94538fe
Changes
3
Hide whitespace changes
Inline
Side-by-side
B_mappers/asynchronousTool.py
View file @
f9059e58
...
@@ -48,6 +48,7 @@ class ASynchronousToolGlueGenerator:
...
@@ -48,6 +48,7 @@ class ASynchronousToolGlueGenerator:
########################################################
########################################################
# Parts to possibly override for each synchronous tool
# Parts to possibly override for each synchronous tool
# noinspection PyMethodMayBeStatic
def
CleanNameAsToolWants
(
self
,
name
):
# pylint: disable=no-self-use
def
CleanNameAsToolWants
(
self
,
name
):
# pylint: disable=no-self-use
return
re
.
sub
(
r
'[^a-zA-Z0-9_]'
,
'_'
,
name
)
return
re
.
sub
(
r
'[^a-zA-Z0-9_]'
,
'_'
,
name
)
...
...
B_mappers/synchronousTool.py
View file @
f9059e58
...
@@ -66,9 +66,11 @@ class SynchronousToolGlueGenerator:
...
@@ -66,9 +66,11 @@ class SynchronousToolGlueGenerator:
########################################################
########################################################
# Parts to possibly override for each synchronous tool
# Parts to possibly override for each synchronous tool
# noinspection PyMethodMayBeStatic
def
CleanNameAsToolWants
(
self
,
name
):
# pylint: disable=no-self-use
def
CleanNameAsToolWants
(
self
,
name
):
# pylint: disable=no-self-use
return
re
.
sub
(
r
'[^a-zA-Z0-9_]'
,
'_'
,
name
)
return
re
.
sub
(
r
'[^a-zA-Z0-9_]'
,
'_'
,
name
)
# noinspection PyMethodMayBeStatic
def
CleanNameAsADAWants
(
self
,
name
):
# pylint: disable=no-self-use
def
CleanNameAsADAWants
(
self
,
name
):
# pylint: disable=no-self-use
return
re
.
sub
(
r
'[^a-zA-Z0-9_]'
,
'_'
,
name
)
return
re
.
sub
(
r
'[^a-zA-Z0-9_]'
,
'_'
,
name
)
...
...
commonPy/recursiveMapper.py
View file @
f9059e58
...
@@ -30,15 +30,18 @@ from commonPy.asnAST import (
...
@@ -30,15 +30,18 @@ from commonPy.asnAST import (
class
RecursiveMapper
:
class
RecursiveMapper
:
# noinspection PyMethodMayBeStatic
def
maybeElse
(
self
,
childNo
:
int
)
->
str
:
# pylint: disable=no-self-use
def
maybeElse
(
self
,
childNo
:
int
)
->
str
:
# pylint: disable=no-self-use
if
childNo
==
1
:
if
childNo
==
1
:
return
""
return
""
else
:
else
:
return
"else "
return
"else "
# noinspection PyMethodMayBeStatic
def
CleanName
(
self
,
fieldName
:
str
)
->
str
:
# pylint: disable=no-self-use
def
CleanName
(
self
,
fieldName
:
str
)
->
str
:
# pylint: disable=no-self-use
return
re
.
sub
(
r
'[^a-zA-Z0-9_]'
,
'_'
,
fieldName
)
return
re
.
sub
(
r
'[^a-zA-Z0-9_]'
,
'_'
,
fieldName
)
# noinspection PyMethodMayBeStatic
def
Version
(
self
):
# pylint: disable=no-self-use
def
Version
(
self
):
# pylint: disable=no-self-use
panicWithCallStack
(
"Method undefined in a RecursiveMapper..."
)
panicWithCallStack
(
"Method undefined in a RecursiveMapper..."
)
...
...
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