Commits

Michał Górny committed 7bbc873

Expand PackageFileSet instantiating once again.

  • Participants
  • Parent commits 58adf8a

Comments (0)

Files changed (1)

lib/flaggie/packagefile.py

 
 class PackageFiles(object):
 	def __init__(self, basedir):
-		fmap = (
-			('use', 'package.use'),
-			('kw', 'package.keywords'),
-			('lic', 'package.license')
-		)
-
-		self.files = {}
-		for k, fn in fmap:
-			self.files[k] = PackageFileSet(os.path.join(basedir, fn))
+		p = lambda x: os.path.join(basedir, x)
+		self.files = {
+			'use': PackageFileSet(p('package.use')),
+			'kw': PackageFileSet(p('package.keywords')),
+			'lic': PackageFileSet(p('package.license'))
+		}
 
 	def __getitem__(self, k):
 		return self.files[k]