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

Comments (0)

Files changed (1)

File lib/flaggie/

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