New submission from John Mark Vandenberg: Tools/scripts/fixdiv.py 's `FileContext.truncate` has used `window` since it was created, when it is supposed to use self.window.
https://hg.python.org/cpython/annotate/60f290a7eae8/Tools/scripts/fixdiv.py#l195 `truncate` is unused, so an alternative fix is to remove it, as it has never worked, and nobody has complained. ---------- components: Demos and Tools files: fixdiv.diff keywords: patch messages: 253661 nosy: John.Mark.Vandenberg priority: normal severity: normal status: open title: undefined name 'window' in Tools/scripts/fixdiv.py versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6 Added file: http://bugs.python.org/file40888/fixdiv.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25505> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com