Skip to content

Commit

Permalink
Fix: Literal comparison with "==" instead of "is"
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-mayr committed Feb 20, 2024
1 parent 133b1fd commit 8b11b9e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,11 @@ def add_prefix(self, uri):
@return (string) Formatted uri
"""
if uri.find("#") is -1 and uri.find(":") is -1:
if uri.find("#") == -1 and uri.find(":") == -1:
uri = self._def_prefix + ":" + uri
elif not uri.find("#") is -1 and uri.find("<") is -1:
elif not uri.find("#") == -1 and uri.find("<") == -1:
uri = "<" + uri + ">"
elif not uri.find(":") is -1 and uri.find(":") is 0:
elif not uri.find(":") == -1 and uri.find(":") == 0:
uri = self._def_prefix + uri
return uri

Expand Down

0 comments on commit 8b11b9e

Please sign in to comment.