Commits

Ali Gholami Rudi  committed e0b4827

refactor: ignoring empty lines in resources

  • Participants
  • Parent commits bf5cfc1

Comments (0)

Files changed (1)

File ropemacs/refactor.py

     result = []
     for line in text.splitlines():
         try:
-            result.append(project.get_resource(line.strip()))
+            if line.strip() != '':
+                result.append(project.get_resource(line.strip()))
         except rope.base.exceptions.ResourceNotFoundError:
             pass
     return result