summaryrefslogtreecommitdiff
path: root/kconfiglib.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2019-06-15 18:10:40 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2019-06-15 18:25:18 +0200
commitb9396c0b9053d85bdf3b28a7dc6660825c822354 (patch)
tree6ac1b1f1036085c7ab055bb149a47bc95d3515c7 /kconfiglib.py
parent7c08c04080973ff3b723a43663f6dce378e517d7 (diff)
Move .close() to a better spot in _leave_file()
Diffstat (limited to 'kconfiglib.py')
-rw-r--r--kconfiglib.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index bfcc567..2501a57 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -2095,11 +2095,10 @@ class Kconfig(object):
# Returns from a Kconfig file to the file that sourced it. See
# _enter_file().
- # __self__ fetches the 'file' object for the method
- self._readline.__self__.close()
# Restore location from parent Kconfig file
self._filename, self._linenr = self._include_path[-1]
# Restore include path and 'file' object
+ self._readline.__self__.close() # __self__ fetches the 'file' object
self._include_path, self._readline = self._filestack.pop()
def _next_line(self):