Skip to content

Commit 7209960

Browse files
committed
tweaks
1 parent db979f5 commit 7209960

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/textual/css/parse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"nested": (SelectorType.NESTED, (0, 0, 0)),
4141
}
4242

43-
RE_ID_SELECTOR = re.compile(r"\#" + IDENTIFIER)
43+
RE_ID_SELECTOR = re.compile("#" + IDENTIFIER)
4444

4545

4646
@lru_cache(maxsize=128)

src/textual/walk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def walk_breadth_search_id(
144144
) -> DOMNode | None:
145145
"""Special case to walk breadth first searching for a node with a given id.
146146
147-
This is more efficient that [walk_breadth_first][textual.walk.walk_breadth_first] for this special case, as it can use an index.
147+
This is more efficient than [walk_breadth_first][textual.walk.walk_breadth_first] for this special case, as it can use an index.
148148
149149
Args:
150150
root: The root node (starting point).

0 commit comments

Comments
 (0)