Skip to content

Commit 35b2cbb

Browse files
author
Josh Hoyt
committed
[project @ Disable spurious pylint warnings in sreg module]
1 parent cf4463d commit 35b2cbb

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎openid/sreg.py‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@
4141
from openid import oidutil
4242

4343
try:
44-
basestring
44+
basestring #pylint:disable-msg=W0104
4545
except NameError:
4646
# For Python 2.2
47-
basestring = (str, unicode)
47+
basestring = (str, unicode) #pylint:disable-msg=W0622
4848

4949
__all__ = [
5050
'SRegRequest',
@@ -160,7 +160,9 @@ def getSRegNS(message):
160160
# defined for something other than simple registration
161161
raise SRegNamespaceError(why[0])
162162

163-
return sreg_ns_uri
163+
# we know that sreg_ns_uri defined, because it's defined in the
164+
# else clause of the loop as well, so disable the warning
165+
return sreg_ns_uri #pylint:disable-msg=W0631
164166

165167
class SRegRequest(Extension):
166168
"""An object to hold the state of a simple registration request.

0 commit comments

Comments
 (0)