Re: [ovs-dev] [PATCH] python: Update Python version checks.

2016-04-15 Thread Russell Bryant
On Fri, Apr 15, 2016 at 3:49 AM, Miguel Angel Ajo Pelayo < majop...@redhat.com> wrote: > On Thu, Apr 14, 2016 at 11:09 PM, Ben Pfaff wrote: > > On Thu, Apr 14, 2016 at 05:00:48PM -0400, Russell Bryant wrote: > >> Instead of checking the raw version, use the six.PY2 and six.PY3

Re: [ovs-dev] [PATCH] python: Update Python version checks.

2016-04-15 Thread Miguel Angel Ajo Pelayo
On Thu, Apr 14, 2016 at 11:09 PM, Ben Pfaff wrote: > On Thu, Apr 14, 2016 at 05:00:48PM -0400, Russell Bryant wrote: >> Instead of checking the raw version, use the six.PY2 and six.PY3 helpers >> to determine if Python 2 or Python 3 are in use. >> >> In one case, the check was to

Re: [ovs-dev] [PATCH] python: Update Python version checks.

2016-04-14 Thread Ben Pfaff
On Thu, Apr 14, 2016 at 05:00:48PM -0400, Russell Bryant wrote: > Instead of checking the raw version, use the six.PY2 and six.PY3 helpers > to determine if Python 2 or Python 3 are in use. > > In one case, the check was to determine if the Python version was >= > 2.6. We now only support >=

[ovs-dev] [PATCH] python: Update Python version checks.

2016-04-14 Thread Russell Bryant
Instead of checking the raw version, use the six.PY2 and six.PY3 helpers to determine if Python 2 or Python 3 are in use. In one case, the check was to determine if the Python version was >= 2.6. We now only support >= 2.7, so this check would always be true. Signed-off-by: Russell Bryant