From 615c62d9b674bb78888028169a64278dac8e58f5 Mon Sep 17 00:00:00 2001 From: elie Date: Tue, 17 Jun 2014 14:45:55 +0000 Subject: pylint-ed --- pyasn1/type/univ.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pyasn1/type/univ.py b/pyasn1/type/univ.py index 15b5017..d623c7f 100644 --- a/pyasn1/type/univ.py +++ b/pyasn1/type/univ.py @@ -581,9 +581,9 @@ class Real(base.AbstractSimpleAsn1Item): if not isinstance(value[0], numericTypes) or \ not isinstance(value[1], intTypes) or \ not isinstance(value[2], intTypes): - raise error.PyAsn1Error('Lame Real value syntax: %s' % (value,)) + raise error.PyAsn1Error('Lame Real value syntax: %s' % (value,)) if isinstance(value[0], float) and \ - self._inf and value[0] in self._inf: + self._inf and value[0] in self._inf: return value[0] if value[1] not in (2, 10): raise error.PyAsn1Error( @@ -727,7 +727,7 @@ class SetOf(base.AbstractConstructedAsn1Item): raise error.PyAsn1Error('Component value is tag-incompatible: %r vs %r' % (value, t)) if self.strictConstraints and \ not t.isSuperTypeOf(value, matchTags=False): - raise error.PyAsn1Error('Component value is constraints-incompatible: %r' % (value, t)) + raise error.PyAsn1Error('Component value is constraints-incompatible: %r vs %r' % (value, t)) def getComponentByPosition(self, idx): return self._componentValues[idx] def setComponentByPosition(self, idx, value=None, verifyConstraints=True): @@ -833,7 +833,7 @@ class SequenceAndSetBase(base.AbstractConstructedAsn1Item): raise error.PyAsn1Error('Component value is tag-incompatible: %r vs %r' % (value, t)) if self.strictConstraints and \ not t.isSuperTypeOf(value, matchTags=False): - raise error.PyAsn1Error('Component value is constraints-incompatible: %r' % (value, t)) + raise error.PyAsn1Error('Component value is constraints-incompatible: %r vs %r' % (value, t)) def getComponentByName(self, name): return self.getComponentByPosition( -- cgit v1.2.1