labyrinth-team / labyrinth

Labyrinth is a lightweight mind-mapping tool (and looking for maintainers)
GNU General Public License v2.0
97 stars 32 forks source link

Undefined names in TextThought.delete_surroundings() #2

Open takluyver opened 11 years ago

takluyver commented 11 years ago

Pyflakes points out that this method refers to variables old and local_bytes which are never defined. It's not clear what they should be, although perhaps old should be orig (which is defined).

These were already missing when TextThought was refactored 4 years ago (185c2c4eed259e7e9a188ea97863c28c8dec399c). I think this method is only called when using advanced input methods, like those for entering Chinese, so I don't know how to test it.