diff options
author | Alessio Sergi <al3hex@gmail.com> | 2015-10-15 20:22:42 +0200 |
---|---|---|
committer | Alessio Sergi <al3hex@gmail.com> | 2015-11-03 17:06:18 +0100 |
commit | 25f531e3d487d1b441037d6441c2c7e59c85e869 (patch) | |
tree | 1424f48e415557e44ed18527b7175f98c9c8cbf1 /unitest-restful.py | |
parent | 4639fffc34d21cfecddda460de28e45825e3667a (diff) |
Use the new compat module
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 |