drop encode_int helper
We're already using i8 encoding mechanism, so this function is no more needed. Fixes: https://pagure.io/koji/issue/750
This commit is contained in:
parent
ecfcb5b935
commit
f4ee150026
3 changed files with 10 additions and 16 deletions
|
|
@ -59,6 +59,12 @@ koji = fakemodule()
|
|||
koji.GenericError = GenericError
|
||||
koji.BuildError = BuildError
|
||||
|
||||
def encode_int(n):
|
||||
"""If n is too large for a 32bit signed, convert it to a string"""
|
||||
if n <= 2147483647:
|
||||
return n
|
||||
#else
|
||||
return str(n)
|
||||
|
||||
class WindowsBuild(object):
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue