Skip to content

Commit

Permalink
Fixed a Python 2/3 compatibility issue
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelschwier committed Dec 2, 2018
1 parent adbacfb commit 6cb52d2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion framework/modelhubapi_tests/apitestbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
import os
from modelhubapi import ModelHubRESTAPI


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

class TestAPIBase(unittest.TestCase):
"""
Expand Down

0 comments on commit 6cb52d2

Please sign in to comment.