MCPcopy Index your code
hub / github.com/python/cpython / _is_string_const

Method _is_string_const

Tools/i18n/pygettext.py:626–627  ·  view source on GitHub ↗
(self, node)

Source from the content-addressed store, hash-verified

624 return None
625
626 def _is_string_const(self, node):
627 return isinstance(node, ast.Constant) and isinstance(node.value, str)
628
629def write_pot_file(messages, options, fp):
630 timestamp = time.strftime('%Y-%m-%d %H:%M%z')

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected