MCPcopy
hub / github.com/daviddrysdale/python-phonenumbers / _dews_re

Function _dews_re

tools/python/buildmetadatafromxml.py:162–167  ·  view source on GitHub ↗

Remove all whitespace in given regular expression string

(re_str)

Source from the content-addressed store, hash-verified

160
161
162def _dews_re(re_str):
163 """Remove all whitespace in given regular expression string"""
164 if re_str is None:
165 return None
166 else:
167 return re.sub(r'\s', '', re_str)
168
169
170_NUM_RE = re.compile(r'\d+')

Callers 4

__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected