diff options
author | 2015-08-03 16:26:41 -0400 | |
---|---|---|
committer | 2015-08-03 16:26:41 -0400 | |
commit | 16752532c5f7e3dd74745f4ca093278f8c71a90f (patch) | |
tree | 7c4e3d0e9e81fb7132a844df9d56579fce527d62 | |
parent | overlay.py: Adds optional license attribute to overlay object (diff) | |
download | layman-16752532c5f7e3dd74745f4ca093278f8c71a90f.tar.gz layman-16752532c5f7e3dd74745f4ca093278f8c71a90f.tar.bz2 layman-16752532c5f7e3dd74745f4ca093278f8c71a90f.zip |
overlay.py: Reorganizes imports and cleans up init params
-rwxr-xr-x | layman/overlays/overlay.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/layman/overlays/overlay.py b/layman/overlays/overlay.py index 8f31a76..31fe400 100755 --- a/layman/overlays/overlay.py +++ b/layman/overlays/overlay.py @@ -32,9 +32,12 @@ __version__ = "0.2" # #------------------------------------------------------------------------------- -import sys, re, os, os.path import codecs import locale +import os +import os.path +import re +import sys import xml.etree.ElementTree as ET # Python 2.5 from layman.compatibility import encode @@ -56,8 +59,7 @@ WHITESPACE_REGEX = re.compile('\s+') class Overlay(object): ''' Derive the real implementations from this.''' - def __init__(self, config, json=None, ovl_dict=None, xml=None, - ignore = 0): + def __init__(self, config, json=None, ovl_dict=None, xml=None, ignore=0): self.config = config self.output = config['output'] self.module_controller = Modules(path=MOD_PATH, |