check-code: recommend util.urlreq when importing urlparse
authorGregory Szorc <gregory.szorc@gmail.com>
Tue, 21 Mar 2017 22:46:17 -0700
changeset 31572 c0c4e14ee597
parent 31571 b2a41a826d71
child 31573 55c6788c54e2
check-code: recommend util.urlreq when importing urlparse
contrib/check-code.py
--- a/contrib/check-code.py	Tue Mar 21 22:45:02 2017 -0700
+++ b/contrib/check-code.py	Tue Mar 21 22:46:17 2017 -0700
@@ -330,7 +330,7 @@
     (r'^import cStringIO', "don't use cStringIO.StringIO, use util.stringio"),
     (r'^import urllib', "don't use urllib, use util.urlreq/util.urlerr"),
     (r'^import SocketServer', "don't use SockerServer, use util.socketserver"),
-    (r'^import urlparse', "don't use urlparse, use util.urlparse"),
+    (r'^import urlparse', "don't use urlparse, use util.urlreq"),
     (r'^import xmlrpclib', "don't use xmlrpclib, use util.xmlrpclib"),
     (r'^import cPickle', "don't use cPickle, use util.pickle"),
     (r'^import pickle', "don't use pickle, use util.pickle"),