Skip to content

Commit

Permalink
Fixing Python 2.7 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
glitchassassin committed Nov 14, 2018
1 parent 0adb760 commit 6700b86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lackey/RegionMatching.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def __init__(self, target=None):
elif target is not None:
raise TypeError("Unrecognized argument for Pattern()")
def __repr__(self):
return f"<Pattern [{'image' if self.imagePattern else 'ocr'}] \"{self.path}\" ({self.similarity}) >"
return "<Pattern [" + ('image' if self.imagePattern else 'ocr') + "] \"" + self.path + "\" (" + self.similarity + ") >"

def similar(self, similarity):
""" Returns a new Pattern with the specified similarity threshold """
Expand Down

0 comments on commit 6700b86

Please sign in to comment.