MCPcopy Create free account
hub / github.com/EasyIME/PIME / safeSplit

Function safeSplit

python/cinbase/extendtable.py:40–46  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

38
39
40def safeSplit(line):
41 if ' ' in line:
42 return line.split(' ', 1)
43 elif '\t' in line:
44 return line.split('\t', 1)
45 else:
46 return line, "Error"
47
48__all__ = ["extendtable"]

Callers 1

__init__Method · 0.70

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected