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:
Tomas Kopecek 2018-03-19 14:31:06 +01:00 committed by Mike McLean
parent ecfcb5b935
commit f4ee150026
3 changed files with 10 additions and 16 deletions

View file

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