rkern / line_profiler

(OLD REPO) Line-by-line profiling for Python - Current repo ->
https://github.com/pyutils/line_profiler
Other
3.6k stars 254 forks source link

If the file is coded in utf-8, @profile will be not defined #86

Closed gy20073 closed 5 years ago

gy20073 commented 7 years ago

I found a bug when the top of the python source file has the line: "# -- coding: utf-8 --" the @profile decorator will not work (profile not defined)

I could remove the top line to make this work, but it would be nice to fix this bug

rkern commented 7 years ago

I cannot replicate this. Can you provide a minimal example file that demonstrates the problem? Please also provide the command line that you used.

caethan commented 5 years ago

Cannot replicate