Home Download Buy Blog Forum Support

Python 3 incompatibility in vintage.py: MoveFocusGroup

Python 3 incompatibility in vintage.py: MoveFocusGroup

Postby jleibs on Sun Mar 10, 2013 7:33 am

There were some small python3 incompatibilities I had to fix. How should fixes like this be pushed upstream in general?

Patch:
Code: Select all
--- vintage.py.orig   2013-03-10 00:05:42.000000000 -0700
+++ vintage.py   2013-03-09 23:43:57.905349702 -0700
@@ -1098,7 +1098,7 @@
         active_group = self.window.active_group()
         x1, y1, x2, y2 = cells[active_group]

-        idxs = range(len(cells))
+        idxs = list(range(len(cells)))
         del idxs[active_group]

         # Matches are any group that shares a border with the active group in the
@@ -1114,6 +1114,6 @@

         # Focus the first group found in the specified direction, if there is one.
         try:
-            self.window.focus_group(matches.next())
+            self.window.focus_group(next(matches))
         except StopIteration:
             return
jleibs
 
Posts: 1
Joined: Sun Mar 10, 2013 7:25 am

Re: Python 3 incompatibility in vintage.py: MoveFocusGroup

Postby jps on Sun Mar 10, 2013 11:18 pm

Thanks for the patch, will fix
jps
Site Admin
 
Posts: 2948
Joined: Wed Mar 19, 2008 12:33 pm


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 15 guests