Skip to content

Commit

Permalink
code review cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Monson committed Dec 14, 2018
1 parent cfd2cf1 commit 91c3864
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion Lib/distutils/tests/test_bdist_wininst.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

@unittest.skipIf(getattr(bdist_wininst, '_unsupported', False),
'bdist_wininst is not supported in this install')
@unittest.skipIf(platform.win32_is_iot(), "These tests don't work on Windows IoT Core or nanoserver")
class BuildWinInstTestCase(support.TempdirManager,
support.LoggingSilencer,
unittest.TestCase):
Expand Down
10 changes: 5 additions & 5 deletions Modules/_ctypes/callproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ static int _call_function_pointer(int flags,
int *space;
ffi_cif cif;
int cc;
#ifdef MS_WIN32
#if defined(MS_WIN32) && !defined(_M_ARM)
int delta;
#ifndef DONT_USE_SEH
DWORD dwExceptionCode = 0;
Expand Down Expand Up @@ -831,11 +831,9 @@ static int _call_function_pointer(int flags,
#ifndef DONT_USE_SEH
__try {
#endif
#ifdef _M_ARM
delta = 0;
#else
#ifndef _M_ARM
delta =
#endif // _M_ARM
#endif
#endif
ffi_call(&cif, (void *)pProc, resmem, avalues);
#ifdef MS_WIN32
Expand Down Expand Up @@ -875,6 +873,7 @@ static int _call_function_pointer(int flags,
return -1;
}
#else
#ifndef _M_ARM
if (delta < 0) {
if (flags & FUNCFLAG_CDECL)
PyErr_Format(PyExc_ValueError,
Expand All @@ -896,6 +895,7 @@ static int _call_function_pointer(int flags,
return -1;
}
#endif
#endif
#endif
if ((flags & FUNCFLAG_PYTHONAPI) && PyErr_Occurred())
return -1;
Expand Down
2 changes: 1 addition & 1 deletion Tools/winiot/sync_win_iot.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def include_in_tools(p):

return p.suffix.lower() in {'.py', '.pyw', '.txt'}

BASE_NAME = 'python{0.major}{0.minor}'.format(sys.version_info)
BASE_NAME = 'python??'

FULL_LAYOUT = [
('/', '$source', 'python.exe', is_not_debug),
Expand Down

0 comments on commit 91c3864

Please sign in to comment.