Changeset 4360

Show
Ignore:
Timestamp:
08/06/08 08:59:39 (4 months ago)
Author:
nate
Message:

Fixed a subtle bug on windows when managing imports for a class. I got a SyntaxError? whenever I tried to import more than one line.

Well, turns out that the compile function really likes to see just newline characters. So, I have the code all the windows eol characters with unix eols and everything is fixed.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ide/ClassDesigner.py

    r4311 r4360  
    11631163                txt = dlg.edtImport.Text 
    11641164                try: 
    1165                     compile(txt.strip(), "", "exec") 
     1165                    compile(txt.strip().replace("\r\n", "\n"), "", "exec") 
    11661166                    self._classImportDict[frm] = txt 
    11671167                    showDialog = dlg.Accepted = False