py2to3 automatic conversion. Woot!

This commit is contained in:
Ryan Holmes
2017-06-12 16:12:45 -04:00
parent ad535ccc78
commit 828b18d0fd
147 changed files with 1017 additions and 783 deletions

View File

@@ -12,7 +12,7 @@ def sequential_rep(text_, *args):
:return: if text_ length was zero or invalid parameters then no manipulation to text_
"""
arg_len = len(args)
if arg_len % 2 == 0 and isinstance(text_, basestring) and len(text_) > 0:
if arg_len % 2 == 0 and isinstance(text_, str) and len(text_) > 0:
i = 0
while i < arg_len:
text_ = re.sub(args[i], args[i + 1], text_)
@@ -27,4 +27,4 @@ def replace_ltgt(text_):
:param text_: string content of fit name from exported by EVE client.
:return: if text_ is not instance of basestring then no manipulation to text_.
"""
return text_.replace("&lt;", "<").replace("&gt;", ">") if isinstance(text_, basestring) else text_
return text_.replace("&lt;", "<").replace("&gt;", ">") if isinstance(text_, str) else text_