Skip to content

Commit

Permalink
fixes for python2
Browse files Browse the repository at this point in the history
  • Loading branch information
xlevus committed Dec 27, 2017
1 parent c91bf5e commit eb64cad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Empty file added virshpatcher/__init__.py
Empty file.
3 changes: 1 addition & 2 deletions virshpatcher/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import os
import sys
import argparse
import importlib
import subprocess
from xml.etree import ElementTree as ET

Expand Down Expand Up @@ -53,7 +52,7 @@ def err(*args, **kwargs):

def load(module):
modname, klass = module.rsplit('.', 1)
x = importlib.__import__(modname, fromlist=[klass])
x = __import__(modname, fromlist=[klass])
return getattr(x, klass)


Expand Down

0 comments on commit eb64cad

Please sign in to comment.