Joe Amenta avatar Joe Amenta committed 3d4fe20

Making tkinter -> Tkinter work

Comments (0)

Files changed (2)


            "http.client": "httplib",
            "http.cookies": "Cookie",
            "http.cookiejar": "cookielib",
-#          "tkinter": "Tkinter",
+           "tkinter": "Tkinter",
            "tkinter.dialog": "Dialog",
            "tkinter._fix": "FixTk",
            "tkinter.scrolledtext": "ScrolledText",
 class FixImports(fixer_base.BaseFix):
+    order = "pre"
     PATTERN = ' | \n'.join([all_patterns(name) for name in MAPPING])
     PATTERN = ' | \n'.join((PATTERN, multiple_name_import_match))


         a = "import Tkinter"
         self.check(b, a)
-        #TODO: Make this work (see the fix_imports)
-        #b = "import tkinter"
-        #a = "import Tkinter"
-        #self.check(b, a)
+        b = "import tkinter"
+        a = "import Tkinter"
+        self.check(b, a)
         b = "import tkinter.colorchooser"
         a = "import tkColorChooser"
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
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.