1. Michał Górny
  2. flaggie


Michał Górny  committed 798439f

Reuse external PackageEntry API within its implementation.

Use the external PackageEntry API within the implementation of its
functions instead of the internal one. This will make it reusable for
deriving classes.

  • Participants
  • Parent commits 93c4ce2
  • Branches master

Comments (0)

Files changed (1)

File lib/flaggie/packagefile.py

View file
  • Ignore whitespace
 			def __delitem__(self, flag):
 				""" Remove all occurences of a flag. """
 				flags = []
-				for f in self.flags:
+				for f in self:
 					if flag == f.name:
 				for f in flags:
-					self.flags.remove(f)
-				self.modified = True
+					self.remove(f)
 		def __init__(self, path):