/usr/lib/python3/dist-packages/requests_oauthlib/utils.py is in python3-requests-oauthlib 0.4.0-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 | from __future__ import unicode_literals
import os
def is_secure_transport(uri):
"""Check if the uri is over ssl."""
if os.environ.get('DEBUG'):
return True
return uri.lower().startswith('https://')
|