changeset 31572:c0c4e14ee597

check-code: recommend util.urlreq when importing urlparse
author Gregory Szorc <gregory.szorc@gmail.com>
date Tue, 21 Mar 2017 22:46:17 -0700
parents b2a41a826d71
children 55c6788c54e2
files contrib/check-code.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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"),