Closed rudeb0t closed 9 years ago
Relevant lines here:
https://github.com/nsone/nsone-python/blob/master/nsone/rest/records.py#L34 https://github.com/nsone/nsone-python/blob/master/nsone/rest/records.py#L42
Line 34 above causes code to fail if answer is a unicode string.
Line 42 above causes code to fail if updating from an answer retrieved via loadRecord
loadRecord
Suggestion:
Use basestring instead of str. basestring is the common base class for both str and unicode types.
basestring
str
unicode
Thanks for the note, I'll take care of this!
commited, thanks.
Relevant lines here:
https://github.com/nsone/nsone-python/blob/master/nsone/rest/records.py#L34 https://github.com/nsone/nsone-python/blob/master/nsone/rest/records.py#L42
Line 34 above causes code to fail if answer is a unicode string.
Line 42 above causes code to fail if updating from an answer retrieved via
loadRecord
Suggestion:
Use
basestring
instead ofstr
.basestring
is the common base class for bothstr
andunicode
types.