MCPcopy Index your code
hub / github.com/pyscript/pyscript / _extract_class_names

Method _extract_class_names

core/src/stdlib/pyscript/web.py:753–763  ·  view source on GitHub ↗

If the class_name contains several class names separated by spaces, split them and return as a list. Otherwise, return the class_name as is in a list.

(self, class_name)

Source from the content-addressed store, hash-verified

751 super().__init__(self._class_list)
752
753 def _extract_class_names(self, class_name):
754 """
755 If the class_name contains several class names separated by spaces,
756 split them and return as a list. Otherwise, return the class_name as is
757 in a list.
758 """
759 return (
760 [name for name in class_name.split() if name]
761 if " " in class_name
762 else [class_name]
763 )
764
765 def add(self, class_name):
766 """

Callers 3

addMethod · 0.95
removeMethod · 0.95
discardMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected