parameters: (logical_line)
docstring: r"""Imports should usually be on separate lines.
  
      Okay: import os\nimport sys
      E401: import sys, os
  
      Okay: from subprocess import Popen, PIPE
      Okay: from myclas import MyClass
      Okay: from foo.bar.yourclass import YourClass
      Okay: import myclass
      Okay: import foo.bar.yourclass
docstring_summary: r"""Imports should usually be on separate lines.
docstring_tokens: r Imports should usually be on separate lines .
function: def imports_on_separate_lines(logical_line):
      r"""Imports should usually be on separate lines.
  
      Okay: import os\nimport sys
      E401: import sys, os
  
      Okay: from subprocess import Popen, PIPE
      Okay: from myclas import MyClass
      Okay: from foo.bar.yourclass import YourClass
      Okay: import myclass
      Okay: import foo.bar.yourclass
      """
      line = logical_line
      if line.startswith('import '):
          found = line.find(',')
          if -1 < found and ';' not in line[:found]:
              yield found, "E401 multiple imports on one line"
function_tokens: def imports_on_separate_lines ( logical_line ) : line = logical_line if line . startswith ( 'import ' ) : found = line . find ( ',' ) if - 1 < found and ';' not in line [ : found ] : yield found , "E401 multiple imports on one line"