Skip to content

Commit a86ea3b

Browse files
committed
Drop asserts
1 parent 70828c0 commit a86ea3b

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

stashcp/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,6 @@ def get_stashservers_caches(responselines_b):
647647
if len(responselines_b) < 8:
648648
logging.error("stashservers response too short, less than 8 lines")
649649
return None
650-
assert isinstance(responselines_b[4], bytes)
651650
hashname_b = responselines_b[4][-5:]
652651
if hashname_b != b"-sha1":
653652
logging.error("stashservers response does not have sha1 hash: %s", to_str(hashname_b))
@@ -691,7 +690,6 @@ def get_stashservers_caches(responselines_b):
691690

692691
cmd = "/usr/bin/openssl rsautl -verify -pubin -inkey " + pubkey_file
693692
logging.debug("Running %s", cmd)
694-
assert isinstance(sig, bytes)
695693
p = subprocess.Popen(cmd, shell=True,
696694
stdin=subprocess.PIPE, stdout=subprocess.PIPE)
697695
p.stdin.write(sig)
@@ -796,7 +794,6 @@ def get_best_stashcache():
796794

797795
order_str = ""
798796
if len(responselines_b) > 0:
799-
assert isinstance(responselines_b[0], bytes)
800797
order_str = to_str(responselines_b[0])
801798

802799
if order_str == "":

0 commit comments

Comments
 (0)