From 1545b8327d4c4a9fd90e741568e6323985c698ee Mon Sep 17 00:00:00 2001 From: Holger Rapp Date: Tue, 7 Jan 2014 07:01:52 +0100 Subject: [PATCH] Do not use xrange since py3 does not define it. --- plugin/UltiSnips/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugin/UltiSnips/__init__.py b/plugin/UltiSnips/__init__.py index 16ec41d..575eae6 100755 --- a/plugin/UltiSnips/__init__.py +++ b/plugin/UltiSnips/__init__.py @@ -22,7 +22,7 @@ def _plugin_dir(): be updated if the code moves. """ d = __file__ - for i in xrange(10): + for i in range(10): d = os.path.dirname(d) if os.path.isdir(os.path.join(d, "plugin")) and os.path.isdir(os.path.join(d, "doc")): return d @@ -1173,4 +1173,3 @@ class SnippetManager(object): UltiSnips_Manager = SnippetManager() -