Skip to content

Commit e047759

Browse files
authored
Remove __future__ import from our code (pyca#5610)
1 parent b3540ec commit e047759

File tree

225 files changed

+0
-261
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

225 files changed

+0
-261
lines changed

Diff for: docs/conf.py

-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
# All configuration values have a default; values that are commented out
1717
# serve to show the default.
1818

19-
from __future__ import absolute_import, division, print_function
20-
2119
import os
2220
import sys
2321

Diff for: docs/cryptography-docs.py

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
6-
75
from docutils import nodes
86
from docutils.parsers.rst import Directive
97

Diff for: docs/development/custom-vectors/arc4/generate_arc4.py

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
6-
75
import binascii
86

97
from cryptography.hazmat.backends import default_backend

Diff for: docs/development/custom-vectors/cast5/generate_cast5.py

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
6-
75
import binascii
86

97
from cryptography.hazmat.backends import default_backend

Diff for: docs/development/custom-vectors/hkdf/generate_hkdf.py

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
6-
75
import binascii
86

97
from cryptography.hazmat.backends import default_backend

Diff for: docs/development/custom-vectors/rsa-oaep-sha2/generate_rsa_oaep_sha2.py

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
6-
75
import binascii
86
import itertools
97
import os

Diff for: docs/development/custom-vectors/secp256k1/generate_secp256k1.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import absolute_import, print_function
2-
31
import hashlib
42
import os
53
from binascii import hexlify

Diff for: docs/development/custom-vectors/secp256k1/verify_secp256k1.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import absolute_import, print_function
2-
31
import os
42

53
from cryptography.hazmat.backends import default_backend

Diff for: docs/development/submitting-patches.rst

-6

Diff for: release.py

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
6-
75
import getpass
86
import glob
97
import io

Diff for: setup.py

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
55
# for complete details.
66

7-
from __future__ import absolute_import, division, print_function
8-
97
import os
108
import platform
119
import sys

Diff for: src/_cffi_src/build_openssl.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
65

76
import os
87
import sys

Diff for: src/_cffi_src/build_padding.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
65

76
import os
87

Diff for: src/_cffi_src/openssl/__init__.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
# This file is dual licensed under the terms of the Apache License, Version
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
4-
5-
from __future__ import absolute_import, division, print_function

Diff for: src/_cffi_src/openssl/aes.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
65

76
INCLUDES = """
87
#include <openssl/aes.h>

Diff for: src/_cffi_src/openssl/asn1.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
65

76
INCLUDES = """
87
#include <openssl/asn1.h>

Diff for: src/_cffi_src/openssl/bignum.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
65

76
INCLUDES = """
87
#include <openssl/bn.h>

Diff for: src/_cffi_src/openssl/bio.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
65

76
INCLUDES = """
87
#include <openssl/bio.h>

Diff for: src/_cffi_src/openssl/callbacks.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
65

76
INCLUDES = """
87
#include <string.h>

Diff for: src/_cffi_src/openssl/cmac.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
65

76
INCLUDES = """
87
#if !defined(OPENSSL_NO_CMAC)

Diff for: src/_cffi_src/openssl/conf.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
65

76
INCLUDES = """
87
#include <openssl/conf.h>

Diff for: src/_cffi_src/openssl/crypto.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
65

76
INCLUDES = """
87
#include <openssl/crypto.h>

Diff for: src/_cffi_src/openssl/cryptography.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
65

76
INCLUDES = """
87
/* define our OpenSSL API compatibility level to 1.0.1. Any symbols older than

Diff for: src/_cffi_src/openssl/ct.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
65

76
INCLUDES = """
87
#if CRYPTOGRAPHY_OPENSSL_110F_OR_GREATER && !defined(OPENSSL_NO_CT)

Diff for: src/_cffi_src/openssl/dh.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
65

76
INCLUDES = """
87
#include <openssl/dh.h>

Diff for: src/_cffi_src/openssl/dsa.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
65

76
INCLUDES = """
87
#include <openssl/dsa.h>

Diff for: src/_cffi_src/openssl/ec.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
65

76
INCLUDES = """
87
#include <openssl/ec.h>

Diff for: src/_cffi_src/openssl/ecdh.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
65

76
INCLUDES = """
87
#include <openssl/ecdh.h>

Diff for: src/_cffi_src/openssl/ecdsa.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
65

76
INCLUDES = """
87
#include <openssl/ecdsa.h>

Diff for: src/_cffi_src/openssl/engine.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
65

76
INCLUDES = """
87
#include <openssl/engine.h>

Diff for: src/_cffi_src/openssl/err.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
65

76
INCLUDES = """
87
#include <openssl/err.h>

Diff for: src/_cffi_src/openssl/evp.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
65

76
INCLUDES = """
87
#include <openssl/evp.h>

Diff for: src/_cffi_src/openssl/fips.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
65

76
INCLUDES = """
87
#include <openssl/crypto.h>

Diff for: src/_cffi_src/openssl/hmac.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
65

76
INCLUDES = """
87
#include <openssl/hmac.h>

Diff for: src/_cffi_src/openssl/nid.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
65

76
INCLUDES = """
87
#include <openssl/obj_mac.h>

Diff for: src/_cffi_src/openssl/objects.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
65

76
INCLUDES = """
87
#include <openssl/objects.h>

Diff for: src/_cffi_src/openssl/ocsp.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
65

76
INCLUDES = """
87
#include <openssl/ocsp.h>

Diff for: src/_cffi_src/openssl/opensslv.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
65

76
INCLUDES = """
87
#include <openssl/opensslv.h>

Diff for: src/_cffi_src/openssl/osrandom_engine.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
65

76
import os
87

Diff for: src/_cffi_src/openssl/pem.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
65

76
INCLUDES = """
87
#include <openssl/pem.h>

Diff for: src/_cffi_src/openssl/pkcs12.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
65

76
INCLUDES = """
87
#include <openssl/pkcs12.h>

Diff for: src/_cffi_src/openssl/pkcs7.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
65

76
INCLUDES = """
87
#include <openssl/pkcs7.h>

Diff for: src/_cffi_src/openssl/rand.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
65

76
INCLUDES = """
87
#include <openssl/rand.h>

Diff for: src/_cffi_src/openssl/rsa.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
65

76
INCLUDES = """
87
#include <openssl/rsa.h>

Diff for: src/_cffi_src/openssl/ssl.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
65

76
INCLUDES = """
87
#include <openssl/ssl.h>

Diff for: src/_cffi_src/openssl/x509.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
65

76
INCLUDES = """
87
#include <openssl/ssl.h>

Diff for: src/_cffi_src/openssl/x509_vfy.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
65

76
INCLUDES = """
87
#include <openssl/x509_vfy.h>

Diff for: src/_cffi_src/openssl/x509name.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
65

76
INCLUDES = """
87
#include <openssl/x509.h>

Diff for: src/_cffi_src/openssl/x509v3.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
33
# for complete details.
44

5-
from __future__ import absolute_import, division, print_function
65

76
INCLUDES = """
87
#include <openssl/x509v3.h>

0 commit comments

Comments
 (0)