(self)
| 1084 | return self.io.maybesave() |
| 1085 | |
| 1086 | def close(self): |
| 1087 | try: |
| 1088 | reply = self.maybesave() |
| 1089 | if str(reply) != "cancel": |
| 1090 | self._close() |
| 1091 | return reply |
| 1092 | except AttributeError: # bpo-35379: close called twice |
| 1093 | pass |
| 1094 | |
| 1095 | def _close(self): |
| 1096 | if self.io.filename: |
no test coverage detected