[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [stem/master] Reader's targets weren't expanded to be an absolute path
commit c2308b5db19285ddf90d6c64d1bccbcd3c9184f3
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date: Sat Jan 3 14:36:17 2015 -0800
Reader's targets weren't expanded to be an absolute path
Not an issue with the python2/3 unification. Just an error I spotted while code
reviewing this: we didn't preserve the aboslute paths to self._targets, so that
line of code was a no-op.
---
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 0022d89..743771b 100644
--- a/stem/descriptor/reader.py
+++ b/stem/descriptor/reader.py
@@ -270,7 +270,7 @@ class DescriptorReader(object):
# expand any relative paths we got
- target = list(map(os.path.abspath, target))
+ self._targets = list(map(os.path.abspath, self._targets))
self._validate = validate
self._follow_links = follow_links
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits