Skip to content

Commit

Permalink
Avoid deprecation warning
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
  • Loading branch information
jacobperron committed Oct 6, 2020
1 parent 4e4b7b4 commit 792e60e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyreadline/py3k_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import collections
PY3 = True
def callable(x):
return isinstance(x, collections.Callable)
return isinstance(x, collections.abc.Callable)

def execfile(fname, glob, loc=None):
loc = loc if (loc is not None) else glob
with open(fname) as fil:
Expand All @@ -22,5 +22,5 @@ def execfile(fname, glob, loc=None):
execfile = execfile
bytes = str
unicode = unicode

from StringIO import StringIO

0 comments on commit 792e60e

Please sign in to comment.