MCPcopy 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
108def selector_str(rule):
109 """
110 Return the given rule's selector as a string
111 """
112 return tokenlist_to_str(rule.prelude).strip()
113
114
115def reset_css_str(selector):

Calls 1

tokenlist_to_strFunction · 0.85