Skip to content

Commit a9d2b64

Browse files
committed
Merge fixes for #13193 and FAQ from 3.2
2 parents 4f86343 + 9ce366a commit a9d2b64

3 files changed

Lines changed: 4 additions & 8 deletions

File tree

Doc/faq/general.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ How do I obtain a copy of the Python source?
157157

158158
The latest Python source distribution is always available from python.org, at
159159
http://www.python.org/download/. The latest development sources can be obtained
160-
via anonymous Subversion at http://svn.python.org/projects/python/trunk.
160+
via anonymous Mercurial access at http://hg.python.org/cpython.
161161

162162
The source distribution is a gzipped tar file containing the complete C source,
163163
Sphinx-formatted documentation, Python library modules, example programs, and

Lib/distutils/filelist.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,10 +313,8 @@ def translate_pattern(pattern, anchor=1, prefix=None, is_regex=0):
313313
# ditch end of pattern character
314314
empty_pattern = glob_to_re('')
315315
prefix_re = (glob_to_re(prefix))[:-len(empty_pattern)]
316-
# match both path separators, as in Postel's principle
317-
sep_pat = "[" + re.escape(os.path.sep + os.path.altsep
318-
if os.path.altsep else os.path.sep) + "]"
319-
pattern_re = "^" + sep_pat.join([prefix_re, ".*" + pattern_re])
316+
# paths should always use / in manifest templates
317+
pattern_re = "^%s/.*%s" % (prefix_re, pattern_re)
320318
else: # no prefix -- respect anchor flag
321319
if anchor:
322320
pattern_re = "^" + pattern_re

Misc/NEWS

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -777,9 +777,7 @@ Library
777777
- Issues #1745761, #755670, #13357, #12629, #1200313: HTMLParser now correctly
778778
handles non-valid attributes, including adjacent and unquoted attributes.
779779

780-
- Issue #13193: Fix distutils.filelist.FileList and
781-
packaging.manifest.Manifest under Windows. The "recursive-include"
782-
directive now recognizes both legal path separators.
780+
- Issue #13193: Fix distutils.filelist.FileList under Windows.
783781

784782
- Issue #13384: Remove unnecessary __future__ import in Lib/random.py
785783

0 commit comments

Comments
 (0)