Do not use xrange since py3 does not define it.

This commit is contained in:
Holger Rapp 2014-01-07 07:01:52 +01:00
parent 3b56e24062
commit 1545b8327d

View File

@ -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()