Skip to content

Commit 05fbb8a

Browse files
committed
Combine strings that are on the same line
1 parent 442a368 commit 05fbb8a

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

speed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def do(setup_statements, statement):
7878
print("")
7979

8080
ecdh_form = (
81-
"{name:>16}{sep:1} {ecdh:>9{form}}{unit:1} " "{ecdh_inv:>9{form_inv}}"
81+
"{name:>16}{sep:1} {ecdh:>9{form}}{unit:1} {ecdh_inv:>9{form_inv}}"
8282
)
8383

8484
print(

src/ecdsa/der.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def encode_bitstring(s, unused=_sentry):
7777
len_extra = 0
7878
if unused is _sentry:
7979
warnings.warn(
80-
"Legacy call convention used, unused= needs to be " "specified",
80+
"Legacy call convention used, unused= needs to be specified",
8181
DeprecationWarning,
8282
)
8383
elif unused is not None:
@@ -129,7 +129,7 @@ def remove_constructed(string):
129129
s0 = str_idx_as_int(string, 0)
130130
if (s0 & 0xE0) != 0xA0:
131131
raise UnexpectedDER(
132-
"wanted type 'constructed tag' (0xa0-0xbf), " "got 0x%02x" % s0
132+
"wanted type 'constructed tag' (0xa0-0xbf), got 0x%02x" % s0
133133
)
134134
tag = s0 & 0x1F
135135
length, llen = read_length(string[1:])
@@ -197,7 +197,7 @@ def remove_object(string):
197197
def remove_integer(string):
198198
if not string:
199199
raise UnexpectedDER(
200-
"Empty string is an invalid encoding of an " "integer"
200+
"Empty string is an invalid encoding of an integer"
201201
)
202202
if string[:1] != b"\x02":
203203
n = str_idx_as_int(string, 0)

src/ecdsa/ecdh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class ECDH(object):
4646
4747
Allows two parties, each having an elliptic-curve public-private key
4848
pair, to establish a shared secret over an insecure channel
49-
""" ""
49+
"""
5050

5151
def __init__(self, curve=None, private_key=None, public_key=None):
5252
"""

src/ecdsa/keys.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def __init__(self, _error__please_use_generate=None):
135135
"""Unsupported, please use one of the classmethods to initialise."""
136136
if not _error__please_use_generate:
137137
raise TypeError(
138-
"Please use VerifyingKey.generate() to " "construct me"
138+
"Please use VerifyingKey.generate() to construct me"
139139
)
140140
self.curve = None
141141
self.default_hashfunc = None
@@ -932,13 +932,13 @@ def from_der(cls, string, hashfunc=sha1):
932932
one, s = der.remove_integer(s)
933933
if one != 1:
934934
raise der.UnexpectedDER(
935-
"expected '1' at start of DER privkey," " got %d" % one
935+
"expected '1' at start of DER privkey, got %d" % one
936936
)
937937
privkey_str, s = der.remove_octet_string(s)
938938
tag, curve_oid_str, s = der.remove_constructed(s)
939939
if tag != 0:
940940
raise der.UnexpectedDER(
941-
"expected tag 0 in DER privkey," " got %d" % tag
941+
"expected tag 0 in DER privkey, got %d" % tag
942942
)
943943
curve_oid, empty = der.remove_object(curve_oid_str)
944944
if empty != b(""):

0 commit comments

Comments
 (0)