Sublime Forum

Python 3 incompatibility in vintage.py: MoveFocusGroup

#1

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

Patch:

--- 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
0 Likes

#2

Thanks for the patch, will fix

0 Likes