python3: fixed usage of .next() and .func_name

This commit is contained in:
RhodeCode Admin 2023-03-07 09:56:40 +01:00
parent 94a50edf39
commit 0122133e4e
13 changed files with 18 additions and 18 deletions

View file

@ -1907,7 +1907,7 @@ class Repository(Base, BaseModel):
@classmethod
def get_by_id_or_repo_name(cls, repoid):
if isinstance(repoid, (int, long)):
if isinstance(repoid, int):
try:
repo = cls.get(repoid)
except ValueError: