Commits

Michał Górny committed 1a07ae7

Transform Token.modified into a property.

  • Participants
  • Parent commits fbbd188

Comments (0)

Files changed (1)

lib/flaggie/makeconf.py

 	class MakeConfFile(PackageFileSet.PackageFile):
 		class Token(object):
 			def __init__(self, s = ''):
-				self.modified = False
+				self._modified = False
 				self.s = s
 
 			def __len__(self):
 				return self
 
 			@property
+			def modified(self):
+				return self._modified
+
+			@modified.setter
+			def modified(self, val):
+				self._modified = val
+
+			@property
 			def data(self):
 				if self.modified:
 					return ''.join([f.toString() for f in self.flags])