summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2016-10-19 20:41:27 +0300
committerLars Wirzenius <liw@liw.fi>2016-10-19 20:41:27 +0300
commit98b47696f8dca4487649b2fa6d3ec57b3d68bdae (patch)
treed269e1bad52f8381e4608ba6f58d50469a340f02
parentb8537c7d8a391bfc5e093e474ffc51321c3fc971 (diff)
downloaddistix-98b47696f8dca4487649b2fa6d3ec57b3d68bdae.tar.gz
Fix things to silence pylint
-rw-r--r--distixlib/metadata_saver.py4
-rw-r--r--distixlib/structurederror.py2
-rw-r--r--pylint.conf1
3 files changed, 4 insertions, 3 deletions
diff --git a/distixlib/metadata_saver.py b/distixlib/metadata_saver.py
index 2e475bf..a0dd4cf 100644
--- a/distixlib/metadata_saver.py
+++ b/distixlib/metadata_saver.py
@@ -36,9 +36,7 @@ class MetadataSaver(object):
with self._open_file(filename, 'w') as f:
f.write(text)
except EnvironmentError as e:
- logging.error(
- 'Opening or reading {0}: {1}'.format(
- filename, str(e)))
+ logging.error('Opening or reading %s: %s', filename, str(e))
raise distixlib.CannotSaveMetadataError(
filename=filename, errno=e.errno, strerror=e.strerror)
diff --git a/distixlib/structurederror.py b/distixlib/structurederror.py
index bd73710..8170a0b 100644
--- a/distixlib/structurederror.py
+++ b/distixlib/structurederror.py
@@ -57,6 +57,8 @@ class StructuredError(Exception):
'''
+ msg = 'BUG: StructuredError SUBCLASS DOES NOT DEFINE msg ATTRIBUTE'
+
def __init__(self, **kwargs):
Exception.__init__(self)
self.kwargs = kwargs
diff --git a/pylint.conf b/pylint.conf
index dc45d80..fb2164b 100644
--- a/pylint.conf
+++ b/pylint.conf
@@ -20,6 +20,7 @@ disable=
too-many-locals,
too-many-public-methods,
too-many-statements,
+ unidiomatic-typecheck,
unused-argument
[REPORTS]