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

[tor-commits] [bridgedb/develop] Make script Python 3-compatible.



commit e608e771fce3e484f7c2419c07892a0119826802
Author: Philipp Winter <phw@xxxxxxxxx>
Date:   Thu Mar 26 21:16:02 2020 -0700

    Make script Python 3-compatible.
    
    ...by changing "urllib.quote" to "urllib.parse.quote".
---
 doc/sphinx/ext/traclinks.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/doc/sphinx/ext/traclinks.py b/doc/sphinx/ext/traclinks.py
index 732295d..90f596c 100644
--- a/doc/sphinx/ext/traclinks.py
+++ b/doc/sphinx/ext/traclinks.py
@@ -16,6 +16,7 @@ Adapted from recipe here_.
 """
 
 import urllib
+import urllib.parse
 from docutils import nodes, utils
 
 def make_trac_link(name, rawtext, text, lineno, inliner,
@@ -33,7 +34,7 @@ def make_trac_link(name, rawtext, text, lineno, inliner,
     env = inliner.document.settings.env
     base_url =  env.config.traclinks_base_url
     label = utils.unescape('ticket #' + label)
-    ref = base_url + urllib.quote(full_name, safe='')
+    ref = base_url + urllib.parse.quote(full_name, safe='')
     node = nodes.reference(rawtext, label, refuri=ref, **options)
 
     return [node],[]



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