summaryrefslogtreecommitdiff
path: root/git/repo/fun.py
diff options
context:
space:
mode:
authorHarmon <Harmon758@gmail.com>2020-02-07 05:21:49 -0600
committerSebastian Thiel <sebastian.thiel@icloud.com>2020-02-08 10:55:50 +0800
commitb5dd2f0c0ed534ecbc1c1a2d8e07319799a4e9c7 (patch)
tree552484709b240e44b62e652c076bb62766429b00 /git/repo/fun.py
parentae7499f316770185d6e9795430fa907ca3f29679 (diff)
downloadgitpython-b5dd2f0c0ed534ecbc1c1a2d8e07319799a4e9c7.tar.gz
Remove and replace compat.xrange
Diffstat (limited to 'git/repo/fun.py')
-rw-r--r--git/repo/fun.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/git/repo/fun.py b/git/repo/fun.py
index 5a47fff3..784a70bf 100644
--- a/git/repo/fun.py
+++ b/git/repo/fun.py
@@ -3,7 +3,6 @@ import os
import stat
from string import digits
-from git.compat import xrange
from git.exc import WorkTreeRepositoryUnsupported
from git.objects import Object
from git.refs import SymbolicReference
@@ -307,7 +306,7 @@ def rev_parse(repo, rev):
try:
if token == "~":
obj = to_commit(obj)
- for _ in xrange(num):
+ for _ in range(num):
obj = obj.parents[0]
# END for each history item to walk
elif token == "^":