[tor-commits] [stem/master] Pass along parse_bytes()'s keyword arguments
atagar at torproject.org
atagar at torproject.org
Tue Nov 20 21:44:28 UTC 2018
commit dafbace18871bcb5f4a74acc2b48d0682e56de02
Author: Damian Johnson <atagar at torproject.org>
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):
More information about the tor-commits
mailing list