Skip to content

Commit

Permalink
missing import json, speed up to import requests
Browse files Browse the repository at this point in the history
  • Loading branch information
mahtin committed Nov 23, 2022
1 parent e62e39c commit f7b4a8c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CloudFlare/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
from __future__ import absolute_import

import sys
import requests
import json
from requests import __version__ as requests__version__

from . import __version__

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

Expand Down

0 comments on commit f7b4a8c

Please sign in to comment.