Commits

ZyX_I committed 9e8a92f

Get rid of importlib

It is not present in python 2.6

Comments (0)

Files changed (1)

python/aurum/powerline.py

 from __future__ import absolute_import
-from importlib import import_module
 from collections import namedtuple
 from time import time
 import aurum.rcdriverfuncs as rcdfuncs
     try:
         if vcs not in vcss:
             try:
-                module = import_module('aurum.au'+vcs)
+                module_last_name = 'au' + vcs
+                module = getattr(__import__('aurum', fromlist=(module_last_name,)), module_last_name)
             except:
                 module = None