You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by kl...@apache.org on 2018/08/29 15:44:08 UTC

[mesos] 02/02: Migrated mesos python package to python3.6.

This is an automated email from the ASF dual-hosted git repository.

klueska pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git

commit 959fa0bbe6dcde60262bc131f851f5bb2d709d57
Author: Eric Chung <ci...@gmail.com>
AuthorDate: Wed Aug 29 13:46:11 2018 +0200

    Migrated mesos python package to python3.6.
    
    Review: https://reviews.apache.org/r/67894
---
 src/python/lib/mesos/exceptions.py | 2 +-
 src/python/lib/mesos/http.py       | 6 +++---
 src/python/lib/tests/conftest.py   | 2 +-
 src/python/lib/tests/test_http.py  | 2 +-
 src/python/lib/tests/test_mesos.py | 2 +-
 5 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/python/lib/mesos/exceptions.py b/src/python/lib/mesos/exceptions.py
index 63c7aa6..5bd8f67 100644
--- a/src/python/lib/mesos/exceptions.py
+++ b/src/python/lib/mesos/exceptions.py
@@ -18,7 +18,7 @@
 Exceptions Classes
 """
 
-from __future__ import absolute_import
+
 
 
 class MesosException(Exception):
diff --git a/src/python/lib/mesos/http.py b/src/python/lib/mesos/http.py
index 073c159..8a5a368 100644
--- a/src/python/lib/mesos/http.py
+++ b/src/python/lib/mesos/http.py
@@ -20,9 +20,9 @@
 Classes and functions for interacting with the Mesos HTTP RESTful API
 """
 
-from __future__ import absolute_import
 
-from urlparse import urlparse
+
+from urllib.parse import urlparse
 from copy import deepcopy
 
 import requests
@@ -84,7 +84,7 @@ class Resource(object):
     default timeout for connections, default headers to be included in each
     request, and auth.
     """
-    SUCCESS_CODES = frozenset(xrange(200, 300))
+    SUCCESS_CODES = frozenset(range(200, 300))
     ERROR_CODE_MAP = {c.STATUS_CODE: c for c in (
         MesosBadRequestException,
         MesosAuthenticationException,
diff --git a/src/python/lib/tests/conftest.py b/src/python/lib/tests/conftest.py
index d4d6efc..b28f444 100644
--- a/src/python/lib/tests/conftest.py
+++ b/src/python/lib/tests/conftest.py
@@ -18,7 +18,7 @@
 PyTest configuration
 """
 
-from __future__ import absolute_import
+
 
 import mock
 import pytest
diff --git a/src/python/lib/tests/test_http.py b/src/python/lib/tests/test_http.py
index 66dd6d7..c1b21df 100644
--- a/src/python/lib/tests/test_http.py
+++ b/src/python/lib/tests/test_http.py
@@ -16,7 +16,7 @@
 
 # pylint: disable=missing-docstring,protected-access,too-many-locals,too-many-arguments
 
-from __future__ import absolute_import
+
 
 from collections import namedtuple
 
diff --git a/src/python/lib/tests/test_mesos.py b/src/python/lib/tests/test_mesos.py
index 285a071..770fe99 100644
--- a/src/python/lib/tests/test_mesos.py
+++ b/src/python/lib/tests/test_mesos.py
@@ -18,7 +18,7 @@
 Tests for the mesos package
 """
 
-from __future__ import absolute_import
+
 
 import mesos