Anonymous avatar Anonymous committed a878332

- a few more things are converted
- create a dictionary to hold some specialNames2, wxPoint etc, should also make it a little easier to add new ones.

Comments (0)

Files changed (1)

Plug-ins/wx25upgrade.plug-in.py

                     fInputData = self.reindentSource(fInputLines, fInputName)
                     fOutput = file(os.path.join(self.targetFolder.GetValue(), name), 'w')
                     try:
-                        frag = []
-                        for non, rep in self.u.scanner(fInputData):
-                            frag.append(non)
-                            frag.append(rep)
-                        newtext = string.join(frag, '')
-                        fOutput.write(newtext)
+                        fOutput.write(self.u.upgrade(fInputData))
                     finally:
                         fOutput.close()
                         temp = 'Done converting: %s' % name
         keepGoing = dlg.Update(count, temp)
         
         try:
-            frag = []
-            for non, rep in self.u.scanner(fInputData):
-                frag.append(non)
-                frag.append(rep)
-            newtext = string.join(frag, '')
-            fOutput.write(newtext)
+            fOutput.write(self.u.upgrade(fInputData))
         finally:
             fOutput.close()
             
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.