diff options
Diffstat (limited to 'unitest-restful.py')
-rwxr-xr-x | unitest-restful.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/unitest-restful.py b/unitest-restful.py index d1b2a51e..1bf4e66a 100755 --- a/unitest-restful.py +++ b/unitest-restful.py @@ -25,15 +25,11 @@ import subprocess import time import unittest +from glances.core.compat import text_type from glances.core.glances_globals import version import requests -try: - text_type = str -except NameError: - text_type = unicode - SERVER_PORT = 61234 URL = "http://localhost:%s/api/2" % SERVER_PORT pid = None |