changelog: add the missing 'closed' property on 'appender' object
authorBoris Feld <boris.feld@octobus.net>
Tue, 06 Feb 2018 11:08:41 +0100
changeset 35963 69aaad59dc02
parent 35962 fa15a70f88de
child 35964 a915465a731e
changelog: add the missing 'closed' property on 'appender' object This mimic file object further.
mercurial/changelog.py
--- 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()