pycompat: import correct cookie module on Python 3
authorGregory Szorc <gregory.szorc@gmail.com>
Wed, 12 Apr 2017 18:42:20 -0700
changeset 31942 bc0579a25f82
parent 31941 ac5527021097
child 31943 3e9f118cc834
pycompat: import correct cookie module on Python 3 http.cookielib doesn't exist. http.cookiejar does and it contains the symbols we need. This fixes test failures on Python 3.
mercurial/pycompat.py
--- a/mercurial/pycompat.py	Wed Apr 12 16:50:23 2017 -0700
+++ b/mercurial/pycompat.py	Wed Apr 12 18:42:20 2017 -0700
@@ -25,7 +25,7 @@
     import SocketServer as socketserver
     import xmlrpclib
 else:
-    import http.cookielib as cookielib
+    import http.cookiejar as cookielib
     import http.client as httplib
     import pickle
     import queue as _queue