Commits

Michał Górny  committed de926f2

Use relative imports.

  • Participants
  • Parent commits 1dbae1a

Comments (0)

Files changed (3)

File lib/flaggie/cleanup.py

 
 from portage.exception import AmbiguousPackageName, InvalidAtom
 
-from flaggie.action import Action
+from .action import Action
 
 class BaseCleanupAction(Action.BaseAction):
 	def __init__(self, dbapi):

File lib/flaggie/cli.py

 from portage.dep import Atom
 from portage.exception import AmbiguousPackageName, InvalidAtom
 
-from flaggie import PV
-from flaggie.action import Action, ActionSet, ParserError, ParserWarning
-from flaggie.cache import Caches
-from flaggie.cleanup import DropIneffective, DropUnmatchedPkgs, \
+from . import PV
+from .action import Action, ActionSet, ParserError, ParserWarning
+from .cache import Caches
+from .cleanup import DropIneffective, DropUnmatchedPkgs, \
 		DropUnmatchedFlags, SortEntries, SortFlags, MigrateFiles
-from flaggie.makeconf import MakeConf
-from flaggie.packagefile import PackageFiles
+from .makeconf import MakeConf
+from .packagefile import PackageFiles
 
 def parse_actions(args, dbapi, cache, quiet = False, strict = False, \
 		cleanupact = [], dataout = sys.stdout, output = sys.stderr):

File lib/flaggie/makeconf.py

 
 import codecs, os.path, re, string
 
-from flaggie.packagefile import PackageFileSet
+from .packagefile import PackageFileSet
 
 wsregex = re.compile('(?u)(\s+)')