From 4f8c92c87a1f61ab591c22763d2b7c8a3d07a796 Mon Sep 17 00:00:00 2001 From: Gregory Szorc Date: Tue, 21 Mar 2017 22:46:17 -0700 Subject: [PATCH] check-code: recommend util.urlreq when importing urlparse --- contrib/check-code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/check-code.py b/contrib/check-code.py index 3e80f02130..51622f6896 100755 --- a/contrib/check-code.py +++ b/contrib/check-code.py @@ -330,7 +330,7 @@ pypats = [ (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"),