From 33fdfd7b83978ddcec9f46adc40791b2351b3529 Mon Sep 17 00:00:00 2001 From: Boris Pavlovic Date: Wed, 2 Jul 2014 19:43:05 +0400 Subject: [PATCH] Make profiler.utils private Add "_" to utils module to show that they are private, and shouldn't be used outside of this lib Change-Id: Ic74321407f8790520e8c4ef932101c61a95fefbe --- osprofiler/{utils.py => _utils.py} | 0 osprofiler/web.py | 2 +- tests/test_utils.py | 2 +- tests/test_web.py | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename osprofiler/{utils.py => _utils.py} (100%) diff --git a/osprofiler/utils.py b/osprofiler/_utils.py similarity index 100% rename from osprofiler/utils.py rename to osprofiler/_utils.py diff --git a/osprofiler/web.py b/osprofiler/web.py index 29f8426..e3db948 100644 --- a/osprofiler/web.py +++ b/osprofiler/web.py @@ -15,8 +15,8 @@ import webob.dec +from osprofiler import _utils as utils from osprofiler import profiler -from osprofiler import utils def get_trace_id_headers(): diff --git a/tests/test_utils.py b/tests/test_utils.py index 629dee7..790f469 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -17,7 +17,7 @@ import base64 import hashlib import hmac -from osprofiler import utils +from osprofiler import _utils as utils from tests import test diff --git a/tests/test_web.py b/tests/test_web.py index 0c2ecc0..6fd8b3a 100644 --- a/tests/test_web.py +++ b/tests/test_web.py @@ -16,8 +16,8 @@ import mock from webob import response as webob_response +from osprofiler import _utils as utils from osprofiler import profiler -from osprofiler import utils from osprofiler import web from tests import test