Skip to content

Commit b77b863

Browse files
committed
Remove import log from utils.
1 parent 399d8de commit b77b863

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

flask_oauthlib/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
:copyright: (c) 2013 by Hsiaoming Yang.
99
"""
1010

11+
import logging
1112
import oauthlib.oauth1
1213
import oauthlib.oauth2
1314
from functools import wraps
@@ -21,7 +22,7 @@
2122
except ImportError:
2223
from urllib import request as http
2324
from urllib.parse import urljoin, urlparse
24-
from .utils import log
25+
log = logging.getLogger('flask_oauthlib')
2526

2627

2728
__all__ = ('OAuth', 'OAuthRemoteApp', 'OAuthResponse', 'OAuthException')

flask_oauthlib/provider/oauth1.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
:copyright: (c) 2013 by Hsiaoming Yang.
99
"""
1010

11+
import logging
1112
from functools import wraps
1213
from werkzeug import cached_property
1314
from flask import request, redirect, url_for
@@ -17,12 +18,14 @@
1718
from oauthlib.oauth1 import SIGNATURE_HMAC, SIGNATURE_RSA
1819
from oauthlib.common import to_unicode, add_params_to_uri
1920
from oauthlib.oauth1.rfc5849 import errors
20-
from ..utils import log, extract_params, create_response
21+
from ..utils import extract_params, create_response
2122

2223
SIGNATURE_METHODS = (SIGNATURE_HMAC, SIGNATURE_RSA)
2324

2425
__all__ = ('OAuth1Provider', 'OAuth1RequestValidator')
2526

27+
log = logging.getLogger('flask_oauthlib')
28+
2629

2730
class OAuth1Provider(object):
2831
"""Provide secure services using OAuth1.

flask_oauthlib/provider/oauth2.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"""
1010

1111
import os
12+
import logging
1213
import datetime
1314
from functools import wraps
1415
from flask import request, url_for
@@ -18,10 +19,12 @@
1819
from oauthlib import oauth2
1920
from oauthlib.oauth2 import RequestValidator, Server
2021
from oauthlib.common import to_unicode
21-
from ..utils import extract_params, log, decode_base64, create_response
22+
from ..utils import extract_params, decode_base64, create_response
2223

2324
__all__ = ('OAuth2Provider', 'OAuth2RequestValidator')
2425

26+
log = logging.getLogger('flask_oauthlib')
27+
2528

2629
class OAuth2Provider(object):
2730
"""Provide secure services using OAuth2.

flask_oauthlib/utils.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
# coding: utf-8
22

3-
import logging
43
import base64
54
from flask import request, Response
65
from oauthlib.common import to_unicode, bytes_type
76

8-
log = logging.getLogger('flask_oauthlib')
9-
107

118
def extract_params():
129
"""Extract request params."""

0 commit comments

Comments
 (0)