Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Hugo van Kemenade <[email protected]>
  • Loading branch information
freakboy3742 and hugovk authored Mar 21, 2024
1 parent 9515f75 commit cf0b5ff
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Doc/library/webbrowser.rst
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ Notes:
Skipstone, Iceape, and Firefox versions 35 and below.

.. versionchanged:: 3.13
Support for iOS was added.
Support for iOS has been added.

Here are some simple examples::

Expand Down
2 changes: 1 addition & 1 deletion Lib/_ios_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def get_platform_ios():

# We can't use ctypes; abort
if not objc:
return
return None

# Most of the methods return ObjC objects
objc.objc_msgSend.restype = c_void_p
Expand Down
4 changes: 2 additions & 2 deletions Lib/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,8 @@ def _getuserbase():
if env_base:
return env_base

# iOS, tvOS, watchOS, Emscripten, VxWorks, and WASI have no home directories
if sys.platform in {"ios", "emscripten", "tvos", "vxworks", "wasi", "watchos"}:
# Emscripten, iOS, tvOS, VxWorks, WASI, and watchOS have no home directories
if sys.platform in {"emscripten", "ios", "tvos", "vxworks", "wasi", "watchos"}:
return None

def joinuser(*args):
Expand Down
4 changes: 2 additions & 2 deletions Lib/sysconfig/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ def _getuserbase():
if env_base:
return env_base

# iOS, tvOS, watchOS, Emscripten, VxWorks, and WASI have no home directories
if sys.platform in {"ios", "emscripten", "tvos", "vxworks", "wasi", "watchos"}:
# Emscripten, iOS, tvOS, VxWorks, WASI, and watchOS have no home directories
if sys.platform in {"emscripten", "ios", "tvos", "vxworks", "wasi", "watchos"}:
return None

def joinuser(*args):
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Standard library was modified to allow for iOS platform differences.
Modify standard library to allow for iOS platform differences.
2 changes: 1 addition & 1 deletion Modules/getpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@

platlibdir = config.get('platlibdir') or PLATLIBDIR

if os_name == "posix" or os_name in {"darwin", "ios", "tvos", "watchos"}:
if os_name in {"darwin", "ios", "posix", "tvos", "watchos"}:
BUILDDIR_TXT = 'pybuilddir.txt'
BUILD_LANDMARK = 'Modules/Setup.local'
DEFAULT_PROGRAM_NAME = f'python{VERSION_MAJOR}'
Expand Down

0 comments on commit cf0b5ff

Please sign in to comment.