Every line of 'name, *line = input().split()' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.
21 def splitter(line): 22 return line.split()
Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code
11 def read_input(file): 12 for line in file: 13 line = re.split('[^a-z]+', line.lower()) 14 yield line
37 def split(line): 38 """ 39 Operator function for splitting a line with csv module 40 """ 41 reader = csv.reader(StringIO(line)) 42 return reader.next()
31 @staticmethod 32 def _cleverSplit(line): 33 # Split tokens (keeping quoted strings intact). 34 35 PATTERN = re.compile(r"""( 36 \s | \] | \[ | \, | = | # Match whitespace, braces, comma, = 37 ".*?[^\\]" | '.*?[^\\]' # Match single/double-quotes. 38 )""", re.X) 39 return [p for p in PATTERN.split(line) if p.strip()]