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

[tor-commits] [stem/master] Pass along parse_bytes()'s keyword arguments



commit dafbace18871bcb5f4a74acc2b48d0682e56de02
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date:   Tue Nov 20 10:47:07 2018 -0800

    Pass along parse_bytes()'s keyword arguments
    
    They were dropped, causing callers to have the descriptor type and other args
    ignored.
---
 stem/descriptor/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stem/descriptor/__init__.py b/stem/descriptor/__init__.py
index aa424fad..a003d603 100644
--- a/stem/descriptor/__init__.py
+++ b/stem/descriptor/__init__.py
@@ -210,7 +210,7 @@ def parse_bytes(descriptor_bytes, **kwargs):
     * **TypeError** if we can't match the contents of the file to a descriptor type
     * **IOError** if unable to read from the descriptor_file
   """
-  return parse_file(io.BytesIO(descriptor_bytes))
+  return parse_file(io.BytesIO(descriptor_bytes), **kwargs)
 
 
 def parse_file(descriptor_file, descriptor_type = None, validate = False, document_handler = DocumentHandler.ENTRIES, normalize_newlines = None, **kwargs):



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits