(s)
| 38 | |
| 39 | |
| 40 | def cmd_split(s): |
| 41 | # shlex.split is slow, use a simple version, only consider most case |
| 42 | # in mine project test, custom regex is 2.54s, shlex.split is 4.9s |
| 43 | return shlex.split(s) # shlex is more right |
| 44 | |
| 45 | |
| 46 | def cmd_split_fast(s): |
no outgoing calls
no test coverage detected