Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit f7b4a8c

Browse files
committed
missing import json, speed up to import requests
1 parent e62e39c commit f7b4a8c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

CloudFlare/utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
from __future__ import absolute_import
33

44
import sys
5-
import requests
5+
import json
6+
from requests import __version__ as requests__version__
67

78
from . import __version__
89

@@ -11,7 +12,7 @@ def user_agent():
1112
# the default User-Agent is something like 'python-requests/2.11.1'
1213
# this additional data helps support @ Cloudflare help customers
1314
return ('python-cloudflare/' + __version__ + '/' +
14-
'python-requests/' + str(requests.__version__) + '/' +
15+
'python-requests/' + str(requests__version__) + '/' +
1516
'python/' + '.'.join(map(str, sys.version_info[:3]))
1617
)
1718

0 commit comments

Comments
 (0)