Skip to content

Commit

Permalink
Globally ignored pylint message E1101
Browse files Browse the repository at this point in the history
  • Loading branch information
uniomni committed Aug 27, 2012
1 parent 24c8bbe commit ca2568c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# can either give multiple identifier separated by comma (,) or put this option
# multiple time (only on the command line, not in the configuration file where
# it should appear only once).
disable=C,R,I,W0142,W0511,E1103,W0232,W0201,W0403,W0212
disable=C,R,I,W0142,W0511,E1103,W0232,W0201,W0403,W0212,E1101

# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option
Expand Down
8 changes: 0 additions & 8 deletions safe/impact_functions/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,20 +78,16 @@ def get_plugins(name=None):
Or all of them if no name is passed.
"""

# pylint: disable=E1101
plugins_dict = dict([(pretty_function_name(p), p)
for p in FunctionProvider.plugins])
# pylint: enable=E1101

if name is None:
return plugins_dict

if isinstance(name, basestring):
# Add the names
# pylint: disable=E1101
plugins_dict.update(dict([(p.__name__, p)
for p in FunctionProvider.plugins]))
# pylint: enable=E1101

msg = ('No plugin named "%s" was found. '
'List of available plugins is: %s'
Expand Down Expand Up @@ -530,18 +526,14 @@ def get_plugins_as_table(name=None):
header = TableRow([_('Title'), _('ID'), _('Requirements')], header=True)
table_body.append(header)

# pylint: disable=E1101
plugins_dict = dict([(pretty_function_name(p), p)
for p in FunctionProvider.plugins])
# pylint: enable=E1101

if name is not None:
if isinstance(name, basestring):
# Add the names
# pylint: disable=E1101
plugins_dict.update(dict([(p.__name__, p)
for p in FunctionProvider.plugins]))
# pylint: enable=E1101

msg = ('No plugin named "%s" was found. '
'List of available plugins is: %s'
Expand Down
4 changes: 2 additions & 2 deletions safe_qgis/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,8 @@ def qgisVersion():
"""
myVersion = None
try:
myVersion = unicode(QGis.QGIS_VERSION_INT) # pylint: disable=E1101
myVersion = unicode(QGis.QGIS_VERSION_INT)
except AttributeError:
myVersion = unicode(QGis.qgisVersion)[0] # pylint: disable=E1101
myVersion = unicode(QGis.qgisVersion)[0]
myVersion = int(myVersion)
return myVersion

0 comments on commit ca2568c

Please sign in to comment.