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

Function safeSplit

python/cinbase/flangs.py:50–58  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

48
49
50def safeSplit(line):
51 if '=' in line:
52 return line.split('=', 1)
53 elif ' ' in line:
54 return line.split(' ', 1)
55 elif '\t' in line:
56 return line.split('\t', 1)
57 else:
58 return line, line
59
60__all__ = ["flangs"]

Callers 1

__init__Method · 0.70

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected