diff options
author | Rob Austein <sra@hactrn.net> | 2015-11-11 03:22:38 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2015-11-11 03:22:38 +0000 |
commit | 9f6d6462a9cef37735a9d4c61921d04934fd9864 (patch) | |
tree | e5d1b046f6f6bd44faf1b5028f6f1df9698e2a88 /rpki/rcynic.py | |
parent | ac415cdd0f88f8479975627772dd0a84797b261a (diff) |
Configure pylint to use the pylint-django plugin, which (mostly)
understands Django's exotic metaclasses, which in turn allows us to
re-enable a number of pylint checks we had disabled. While we were at
this, stripped out a bunch of old pylint pragmas, then added back the
subset that were really needed. As usual with pylint, this turned up
a few real bugs along with an awful lot of noise.
svn path=/branches/tk705/; revision=6162
Diffstat (limited to 'rpki/rcynic.py')
-rw-r--r-- | rpki/rcynic.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/rpki/rcynic.py b/rpki/rcynic.py index 76d5d183..c6ad60d5 100644 --- a/rpki/rcynic.py +++ b/rpki/rcynic.py @@ -43,9 +43,10 @@ class rcynic_object(object): self.filename = filename for k, v in kwargs.iteritems(): setattr(self, k, v) - self.obj = self.obj_class(DER_file = filename) + self.obj = self.obj_class(DER_file = filename) # pylint: disable=E1101 def __repr__(self): + # pylint: disable=E1101 return "<%s %s %s at 0x%x>" % (self.__class__.__name__, self.uri, self.resources, id(self)) def show_attrs(self, *attrs): @@ -178,7 +179,8 @@ class rcynic_file_iterator(object): self.rcynic_dir = os.path.join(rcynic_root, authenticated_subdir) def __iter__(self): - for root, dirs, files in os.walk(self.rcynic_dir): # pylint: disable=W0612 + # pylint: disable=W0612 + for root, dirs, files in os.walk(self.rcynic_dir): for filename in files: filename = os.path.join(root, filename) ext = os.path.splitext(filename)[1] @@ -196,6 +198,7 @@ class validation_status_element(object): self._obj = None def get_obj(self): + # pylint: disable=E1101 if not self._obj: self._obj = self.file_class(filename=self.filename, uri=self.uri) return self._obj |