[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [stem] 08/20: Fix static check E741



This is an automated email from the git hooks/post-receive script.

atagar pushed a commit to branch maint
in repository stem.

commit 12050440049f0f73a71d2f561114b622029de4b2
Author: juga <juga@xxxxxxxxxx>
AuthorDate: Wed May 31 07:30:40 2023 +0000

    Fix static check E741
---
 stem/descriptor/hidden_service.py | 2 +-
 stem/interpreter/commands.py      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/stem/descriptor/hidden_service.py b/stem/descriptor/hidden_service.py
index 01f8b96f..c65fd5f3 100644
--- a/stem/descriptor/hidden_service.py
+++ b/stem/descriptor/hidden_service.py
@@ -286,7 +286,7 @@ class IntroductionPointV3(collections.namedtuple('IntroductionPointV3', ['link_s
     lines = []
 
     link_count = stem.client.datatype.Size.CHAR.pack(len(self.link_specifiers))
-    link_specifiers = link_count + b''.join([l.pack() for l in self.link_specifiers])
+    link_specifiers = link_count + b''.join([link.pack() for link in self.link_specifiers])
     lines.append('introduction-point %s' % stem.util.str_tools._to_unicode(base64.b64encode(link_specifiers)))
     lines.append('onion-key ntor %s' % self.onion_key_raw)
     lines.append('auth-key\n' + self.auth_key_cert.to_base64(pem = True))
diff --git a/stem/interpreter/commands.py b/stem/interpreter/commands.py
index fe0e1341..95c6dcfb 100644
--- a/stem/interpreter/commands.py
+++ b/stem/interpreter/commands.py
@@ -271,7 +271,7 @@ class ControlInterpreter(code.InteractiveConsole):
     for label, desc in descriptor_section:
       if desc:
         lines += ['', div, format(label, *BOLD_OUTPUT), div, '']
-        lines += [format(l, *STANDARD_OUTPUT) for l in str(desc).splitlines()]
+        lines += [format(line, *STANDARD_OUTPUT) for line in str(desc).splitlines()]
 
     return '\n'.join(lines)
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits