Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/django/code.djangoproject.com
/ selector_str
Function
selector_str
noshadows.py:108–112 ·
view source on GitHub ↗
Return the given rule's selector as a string
(rule)
Source
from the content-addressed store, hash-verified
106
107
108
def
selector_str(rule):
109
""
"
110
Return the given rule&
#x27;s selector as a string
111
""
"
112
return
tokenlist_to_str(rule.prelude).strip()
113
114
115
def
reset_css_str(selector):
Callers
9
test_selector_str_tag
Method · 0.85
test_selector_str_classname
Method · 0.85
test_selector_str_id
Method · 0.85
test_selector_str_with_brackets
Method · 0.85
test_selector_str_with_brackets_noquotes
Method · 0.85
test_selector_str_with_comma
Method · 0.85
test_selector_str_with_comma_and_newline
Method · 0.85
test_selector_str_pseudoclass
Method · 0.85
test_selector_str_pseudoclass_nonstandard
Method · 0.85
Calls
1
tokenlist_to_str
Function · 0.85
Tested by
9
test_selector_str_tag
Method · 0.68
test_selector_str_classname
Method · 0.68
test_selector_str_id
Method · 0.68
test_selector_str_with_brackets
Method · 0.68
test_selector_str_with_brackets_noquotes
Method · 0.68
test_selector_str_with_comma
Method · 0.68
test_selector_str_with_comma_and_newline
Method · 0.68
test_selector_str_pseudoclass
Method · 0.68
test_selector_str_pseudoclass_nonstandard
Method · 0.68