From patchwork Fri Jul 5 00:30:58 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: win32mbcs: wrap util.split() From: Shun-ichi Goto X-Patchwork-Id: 1793 Message-Id: <008330e90abb838babba.1372984258@cirno.ad.taiyo.co.jp> To: mercurial-devel@selenic.com Date: Fri, 05 Jul 2013 09:30:58 +0900 # HG changeset patch # User Shun-ichi GOTO # Date 1372946759 -32400 # Thu Jul 04 23:05:59 2013 +0900 # Node ID 008330e90abb838babbaf0f4550aa365906d58c8 # Parent 77440de177f799f9f3bd6236c5b45fb8e15687e7 win32mbcs: wrap util.split() util.split() should be wrapped because it is an alias of unsafe os.path.split(). diff -r 77440de177f7 -r 008330e90abb hgext/win32mbcs.py --- a/hgext/win32mbcs.py Wed Jun 26 23:12:55 2013 +0200 +++ b/hgext/win32mbcs.py Thu Jul 04 23:05:59 2013 +0900 @@ -140,7 +140,8 @@ os.path.normpath os.makedirs mercurial.util.endswithsep mercurial.util.splitpath mercurial.util.checkcase mercurial.util.fspath mercurial.util.pconvert mercurial.util.normpath - mercurial.util.checkwinfilename mercurial.util.checkosfilename''' + mercurial.util.checkwinfilename mercurial.util.checkosfilename + mercurial.util.split''' # These functions are required to be called with local encoded string # because they expects argument is local encoded string and cause