p-e-w / quicksafe

The easiest way to securely encrypt notes (NO LONGER MAINTAINED)
52 stars 7 forks source link

[OS X] NameError #7

Closed tbennett6421 closed 9 years ago

tbennett6421 commented 9 years ago

When running python quicksafe on OS X 10.8.5 with python 2.7

Traceback (most recent call last): File "quicksafe.py", line 110, in pattern = re.compile(r"(.^'''[DATA])(.)([/DATA]'''.*)", NameError: name 're' is not defined

bug

p-e-w commented 9 years ago

On my system, re is imported through Tkinter. Does adding

import re

to the top of the file fix the problem for you?

Note to self: Always use explicit imports rather than wildcard ones!

tbennett6421 commented 9 years ago

Sure does. Although it looks like I got the double key presses bug you had listed also.

Thanks for the quick assist

p-e-w commented 9 years ago

I'll leave this open for now, I want to fix it properly.

p-e-w commented 9 years ago

Fixed in https://github.com/p-e-w/quicksafe/commit/dbff5c76371cb1018374985c90a6e44944cb27a8. Thank you for reporting this issue!