Fixes for Python 3 Support

This commit is contained in:
Manuel Ebert 2013-04-19 15:19:21 +02:00
parent 3052e0cce7
commit 634d84c77e
4 changed files with 28 additions and 13 deletions

View file

@ -6,7 +6,9 @@ import getpass
try: import simplejson as json
except ImportError: import json
import os
import util
try: from . import util
except (SystemError, ValueError): import util
def module_exists(module_name):
"""Checks if a module exists and can be imported"""