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

Function safeSplit

python/cinbase/userphrase.py:53–61  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

51
52
53def safeSplit(line):
54 if '=' in line:
55 return line.split('=', 1)
56 elif ' ' in line:
57 return line.split(' ', 1)
58 elif '\t' in line:
59 return line.split('\t', 1)
60 else:
61 return line, line
62
63def rootSplit(line):
64 if ',' in line:

Callers 1

__init__Method · 0.70

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected