Commits

Anonymous committed bf68739

Using str.split('\n') instead of splitlines in codeassist

  • Participants
  • Parent commits be45083

Comments (0)

Files changed (1)

File rope/contrib/codeassist.py

                                  self.resource, self.maxfixes)
         module_scope = pymodule.get_scope()
         code = pymodule.source_code
-        lines = code.splitlines()
+        lines = code.split('\n')
         result = {}
         start = _logical_start(lines, lineno)
         indents = _get_line_indents(lines[start - 1])
             if tries < maxfixes:
                 tries += 1
                 if commenter is None:
-                    commenter = _Commenter(code.splitlines())
+                    commenter = _Commenter(code.split('\n'))
                 if error_limit is not None:
                     offset = 0
                     for line in commenter.lines[:e.lineno - 1]: