Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
c97009ae
Commit
c97009ae
authored
May 18, 2015
by
Zachary Ware
Browse files
Options
Browse Files
Download
Plain Diff
Closes #21931: Merge with 3.4
parents
fe9f951b
07b09023
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
Misc/NEWS
Misc/NEWS
+4
-0
PC/_msi.c
PC/_msi.c
+12
-3
No files found.
Misc/NEWS
View file @
c97009ae
...
@@ -47,6 +47,10 @@ Core and Builtins
...
@@ -47,6 +47,10 @@ Core and Builtins
Library
Library
-------
-------
- Issue #21931: msilib.FCICreate() now raises TypeError in the case of a bad
argument instead of a ValueError with a bogus FCI error number.
Patch by Jeffrey Armstrong.
- Issue #13866: *quote_via* argument added to urllib.parse.urlencode.
- Issue #13866: *quote_via* argument added to urllib.parse.urlencode.
- Issue #20098: New mangle_from_ policy option for email, default True
- Issue #20098: New mangle_from_ policy option for email, default True
...
...
PC/_msi.c
View file @
c97009ae
...
@@ -243,8 +243,13 @@ static PyObject* fcicreate(PyObject* obj, PyObject* args)
...
@@ -243,8 +243,13 @@ static PyObject* fcicreate(PyObject* obj, PyObject* args)
for
(
i
=
0
;
i
<
PyList_GET_SIZE
(
files
);
i
++
)
{
for
(
i
=
0
;
i
<
PyList_GET_SIZE
(
files
);
i
++
)
{
PyObject
*
item
=
PyList_GET_ITEM
(
files
,
i
);
PyObject
*
item
=
PyList_GET_ITEM
(
files
,
i
);
char
*
filename
,
*
cabname
;
char
*
filename
,
*
cabname
;
if
(
!
PyArg_ParseTuple
(
item
,
"ss"
,
&
filename
,
&
cabname
))
goto
err
;
if
(
!
PyArg_ParseTuple
(
item
,
"ss"
,
&
filename
,
&
cabname
))
{
PyErr_SetString
(
PyExc_TypeError
,
"FCICreate expects a list of tuples containing two strings"
);
FCIDestroy
(
hfci
);
return
NULL
;
}
if
(
!
FCIAddFile
(
hfci
,
filename
,
cabname
,
FALSE
,
if
(
!
FCIAddFile
(
hfci
,
filename
,
cabname
,
FALSE
,
cb_getnextcabinet
,
cb_status
,
cb_getopeninfo
,
cb_getnextcabinet
,
cb_status
,
cb_getopeninfo
,
tcompTYPE_MSZIP
))
tcompTYPE_MSZIP
))
...
@@ -260,7 +265,11 @@ static PyObject* fcicreate(PyObject* obj, PyObject* args)
...
@@ -260,7 +265,11 @@ static PyObject* fcicreate(PyObject* obj, PyObject* args)
Py_INCREF
(
Py_None
);
Py_INCREF
(
Py_None
);
return
Py_None
;
return
Py_None
;
err:
err:
PyErr_Format
(
PyExc_ValueError
,
"FCI error %d"
,
erf
.
erfOper
);
/* XXX better error type */
if
(
erf
.
fError
)
PyErr_Format
(
PyExc_ValueError
,
"FCI error %d"
,
erf
.
erfOper
);
/* XXX better error type */
else
PyErr_SetString
(
PyExc_ValueError
,
"FCI general error"
);
FCIDestroy
(
hfci
);
FCIDestroy
(
hfci
);
return
NULL
;
return
NULL
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment