Skip to content

Commit

Permalink
Fixed Python 3 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
glitchassassin committed Feb 3, 2017
1 parent a60d938 commit 2c5d455
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lackey/App.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
if not os.environ.get('READTHEDOCS') == 'True':
raise NotImplementedError("Lackey is currently only compatible with Windows.")

# Python 3 compatibility
try:
basestring
except NameError:
basestring = str

class App(object):
""" Allows apps to be selected by title, PID, or by starting an
application directly. Can address individual windows tied to an
Expand Down

0 comments on commit 2c5d455

Please sign in to comment.