Skip to content
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fix import ordering: move import re to be sorted with import unicodedata
Agent-Logs-Url: https://github.com/RustPython/RustPython/sessions/18cc7216-15cf-40d1-8726-23e21aa4c368

Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com>
  • Loading branch information
Copilot and youknowone committed Mar 27, 2026
commit fab1c0cc01724cf9bc8eb3f508e7cf130bb3d878
3 changes: 1 addition & 2 deletions extra_tests/snippets/builtin_str_unicode.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

assert c == "👋👋👋"

import re
import unicodedata

assert unicodedata.category("a") == "Ll"
Expand Down Expand Up @@ -44,6 +45,4 @@
# not the broader Unicode Alphabetic derived property.
assert not "\u0345".isalpha(), "isalpha should not match Mn category characters"
assert not "\u0345".isalnum(), "isalnum should not match Mn category characters"

import re
assert not re.match(r"\w", "\u0345"), r"\w should not match U+0345 (category Mn)"
Loading