Skip to content
Merged

ruff #84

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion pcre/pcre.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from .cache import clear_cache as _clear_cache
from .flags import Flag, strip_py_only_flags


# Cache frequently used flag values as plain integers to avoid the overhead of
# IntFlag arithmetic in hot paths such as module-level search helpers.
COMPAT_UNICODE_ESCAPE: int = int(Flag.COMPAT_UNICODE_ESCAPE)
Expand All @@ -29,11 +30,12 @@
NO_UCP: int = int(Flag.NO_UCP)
from .re_compat import (
Match as _CompatMatch,
)
from .re_compat import (
TemplatePatternStub,
coerce_group_value,
coerce_subject_slice,
compute_next_pos,
count_capturing_groups,
is_bytes_like,
join_parts,
maybe_infer_group_count,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
compiler_supports_flags,
discover_include_dirs,
discover_library_dirs,
ensure_python_headers,
extend_env_paths,
extend_unique,
ensure_python_headers,
filter_incompatible_multiarch,
find_library_with_brew,
find_library_with_ldconfig,
Expand Down
1 change: 1 addition & 0 deletions tests/test_clobber_thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import pcre
import pytest

from tests import test_clobber as fuzz_core


Expand Down
2 changes: 1 addition & 1 deletion tests/test_core.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import re
import types
from collections import OrderedDict
import re

import pytest
from pcre import Flag
Expand Down
Loading