Minor fixes in the code

This commit is contained in:
Phyks 2014-11-14 20:23:48 +01:00
parent 5391d8d1dd
commit 61dc456224

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python
# -*- coding:utf-8-*-
from __future__ import print_function #print function python 2 and 3 compatible
from __future__ import print_function
import email
import hashlib
@ -11,12 +11,11 @@ import requests
import sys
import time
#This is used to import library depending on the python version used.
try:
#for python 3
# For python 3
import json
except ImportError:
# for python 2
# For python 2
import simplejson as json
print('Error importing lib as python3, switching to python 2 libraries')