whoosh-community / whoosh

Whoosh is a fast, featureful full-text indexing and searching library implemented in pure Python.
Other
240 stars 36 forks source link

Fix \u in raw string RE's #557

Closed stevennic closed 4 years ago

stevennic commented 4 years ago

As raised in #550, \u is no longer a supported RE escape sequence in Python 3.6+. Removing the r prefix turns it into a native Unicode character, consistent with the rest of the code in Whoosh.

codecov[bot] commented 4 years ago

Codecov Report

Merging #557 into master will increase coverage by 0.02%. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #557      +/-   ##
==========================================
+ Coverage   83.01%   83.03%   +0.02%     
==========================================
  Files         132      132              
  Lines       29641    29641              
==========================================
+ Hits        24605    24611       +6     
+ Misses       5036     5030       -6
Impacted Files Coverage Δ
src/whoosh/collectors.py 92.85% <0%> (+0.21%) :arrow_up:
src/whoosh/index.py 76.01% <0%> (+1.55%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update eff4a4c...bcadaf3. Read the comment docs.

nijel commented 4 years ago

Merged, thanks for your contribution!