python3: fixed usage of .next() and .func_name
This commit is contained in:
parent
94a50edf39
commit
0122133e4e
13 changed files with 18 additions and 18 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue