[tor-commits] [stem/master] Extracted tarfile name can vary by platform

atagar at torproject.org atagar at torproject.org
Wed Dec 24 17:13:39 UTC 2014

commit a4089b9bf4a79d7aad2d00be083da2555c4682e1
Author: Damian Johnson <atagar at torproject.org>
Date:   Wed Dec 24 09:10:03 2014 -0800

    Extracted tarfile name can vary by platform
    Foxboron spotted that the extracted tarfile entry has a name that varies on his
    platform depending on if he uses python2 or python3. The unextracted entry,
    however, seems to work for us both...
 stem/descriptor/reader.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stem/descriptor/reader.py b/stem/descriptor/reader.py
index 3b2770a..1eecbee 100644
--- a/stem/descriptor/reader.py
+++ b/stem/descriptor/reader.py
@@ -537,7 +537,7 @@ class DescriptorReader(object):
-              desc._set_archive_path(entry.name)
+              desc._set_archive_path(tar_entry.name)
           except TypeError as exc:

More information about the tor-commits mailing list