changeset 35963:69aaad59dc02

changelog: add the missing 'closed' property on 'appender' object This mimic file object further.
author Boris Feld <boris.feld@octobus.net>
date Tue, 06 Feb 2018 11:08:41 +0100
parents fa15a70f88de
children a915465a731e
files mercurial/changelog.py
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/changelog.py	Mon Feb 05 20:36:51 2018 +0100
+++ b/mercurial/changelog.py	Tue Feb 06 11:08:41 2018 +0100
@@ -90,6 +90,11 @@
         return self.offset
     def flush(self):
         pass
+
+    @property
+    def closed(self):
+        return self.fp.closed
+
     def close(self):
         self.fp.close()