From 1120b4316176e5c1232b92a54a1f7f1cd30ce0d0 Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Mon, 6 Aug 2018 17:51:31 -0400 Subject: [PATCH] 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 --- paunch/builder/compose1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paunch/builder/compose1.py b/paunch/builder/compose1.py index d65659c..1e0d718 100644 --- a/paunch/builder/compose1.py +++ b/paunch/builder/compose1.py @@ -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