[issue25505] undefined name 'window' in Tools/scripts/fixdiv.py

John Mark Vandenberg report at bugs.python.org
Thu Oct 29 02:37:50 EDT 2015


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 <report at bugs.python.org>
<http://bugs.python.org/issue25505>
_______________________________________


More information about the Python-bugs-list mailing list