MaartenGr / PolyFuzz

Fuzzy string matching, grouping, and evaluation.
https://maartengr.github.io/PolyFuzz/
MIT License
736 stars 67 forks source link

Update timing.py resource file #32

Open PandaSanchez opened 2 years ago

PandaSanchez commented 2 years ago

Hi -- I'm using Python 3.10. The 'time.clock()' method in timing.py is being (has been) deprecated. This breaks polyfuzz upon importing your module. To make it work, I changed the following line of code, locally (see line 64 in timing.py):

Not sure if this is correct, though. Just wanted to surface the issue in case anyone's using a more recent version of Python.

MaartenGr commented 2 years ago

Could you share the full error message when importing PolyFuzz? As of right now, I do not believe the time module is directly used in PolyFuzz so bug fixing might be a bit more difficult without knowing where exactly the module is used.