MCPcopy Create free account
hub / github.com/cxapython/catvm / parse_decimal

Function parse_decimal

selenium/shannon_spider/util/__init__.py:39–41  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

37 else: return datetime.datetime.strptime(d, '%Y-%m-%d').date()
38
39def parse_decimal(d):
40 if d is None or '-' in d: return None
41 else: return Decimal(d)
42
43def parse_varchar(s):
44 if s is None or '-' == s: return None

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected