Cleaned up imports to work with Python2.6 and Python 3.3

This commit is contained in:
Manuel Ebert 2014-01-23 14:33:14 +01:00
parent 40c2bc13b5
commit d35502423a
7 changed files with 19 additions and 27 deletions

View file

@ -1,14 +1,13 @@
#!/usr/bin/env python
# encoding: utf-8
from __future__ import absolute_import
import readline
import glob
import getpass
try: import simplejson as json
except ImportError: import json
import json
import os
try: from . import util
except (SystemError, ValueError): import util
from . import util
def module_exists(module_name):