Commits

Anonymous committed daa3c72

Fix #122 - \r being bastards.

  • Participants
  • Parent commits 120f693

Comments (0)

Files changed (1)

south/modelsparser.py

 
 def get_model_tree(model):
     # Get the source of the model's file
-    source = open(inspect.getsourcefile(model)).read() + "\n"
+    source = open(inspect.getsourcefile(model)).read().replace("\r","\n") + "\n"
     tree = STTree(parser.suite(source).totuple())
     # Now, we have to find it
     for poss in tree.find("compound_stmt"):