python3: remove usage of 'long'

long is replaced by int in python 3:
https://docs.python.org/3.3/whatsnew/3.0.html#integers
https://www.python.org/dev/peps/pep-0237/

We shouldn't use it anymore.

Change-Id: I93d10be011dca0f0bfc506e752abd59510ac65da
This commit is contained in:
Emilien Macchi 2018-08-06 17:51:31 -04:00
parent 8d593faae7
commit 1120b43161
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ class ComposeV1Builder(object):
self.string_arg(cconfig, cmd, 'stop_signal', '--stop-signal')
def duration(a):
if isinstance(a, (int, long, float)):
if isinstance(a, (int, float)):
return a
# match groups of the format 5h34m56s