1919#
2020# CDDL HEADER END
2121#
22- # Copyright (c) 2008, 2024 , Oracle and/or its affiliates.
22+ # Copyright (c) 2008, 2025 , Oracle and/or its affiliates.
2323#
2424
2525# The portable module provide access to methods that require operating system-
@@ -86,17 +86,17 @@ def get_file_type(actions):
8686def get_group_by_name (name , dirpath , use_file ):
8787 """ Return the group ID for a group name.
8888 If use_file is true, an OS-specific file from within the file tree
89- rooted by dirpath will be consulted, if it exists. Otherwise, the
89+ rooted by dirpath will be consulted, if it exists. Otherwise, the
9090 group ID is retrieved from the operating system.
91- Exceptions:
91+ Exceptions:
9292 KeyError if the specified group does not exist"""
9393 raise NotImplementedError
9494
9595
9696def get_user_by_name (name , dirpath , use_file ):
9797 """ Return the user ID for a user name.
9898 If use_file is true, an OS-specific file from within the file tree
99- rooted by dirpath will be consulted, if it exists. Otherwise, the
99+ rooted by dirpath will be consulted, if it exists. Otherwise, the
100100 user ID is retrieved from the operating system.
101101 Exceptions:
102102 KeyError if the specified group does not exist"""
@@ -106,7 +106,7 @@ def get_user_by_name(name, dirpath, use_file):
106106def get_name_by_gid (gid , dirpath , use_file ):
107107 """ Return the group name for a group ID.
108108 If use_file is true, an OS-specific file from within the file tree
109- rooted by dirpath will be consulted, if it exists. Otherwise, the
109+ rooted by dirpath will be consulted, if it exists. Otherwise, the
110110 group name is retrieved from the operating system.
111111 Exceptions:
112112 KeyError if the specified group does not exist"""
@@ -116,7 +116,7 @@ def get_name_by_gid(gid, dirpath, use_file):
116116def get_name_by_uid (uid , dirpath , use_file ):
117117 """ Return the user name for a user ID.
118118 If use_file is true, an OS-specific file from within the file tree
119- rooted by dirpath will be consulted, if it exists. Otherwise, the
119+ rooted by dirpath will be consulted, if it exists. Otherwise, the
120120 user name is retrieved from the operating system.
121121 Exceptions:
122122 KeyError if the specified group does not exist"""
@@ -155,7 +155,7 @@ def chown(path, owner, group):
155155 """ Change ownership of a file in an OS-specific way.
156156 The owner and group ownership information should be applied to
157157 the given file, if applicable on the current runtime OS.
158- Exceptions:
158+ Exceptions:
159159 EnvironmentError (or subclass) if the path does not exist
160160 or ownership cannot be changed"""
161161 raise NotImplementedError
@@ -181,7 +181,7 @@ def link(src, dst):
181181def remove (path ):
182182 """ Remove the given file in an OS-specific way
183183 Exceptions:
184- OSError (or subclass) if the source path does not exist or
184+ OSError (or subclass) if the source path does not exist or
185185 the file cannot be removed"""
186186 raise NotImplementedError
187187
@@ -199,7 +199,7 @@ def copyfile(src, dst):
199199
200200
201201def split_path (path ):
202- """ Splits a path and gives back the components of the path.
202+ """ Splits a path and gives back the components of the path.
203203 This is intended to hide platform-specific details about splitting
204204 a path into its components. This interface is similar to
205205 os.path.split() except that the entire path is split, not just
@@ -212,7 +212,7 @@ def split_path(path):
212212
213213
214214def get_root (path ):
215- """ Returns the 'root' of the given path.
215+ """ Returns the 'root' of the given path.
216216 This should include any and all components of a path up to the first
217217 non-platform-specific component. For example, on Windows,
218218 it should include the drive letter prefix.
@@ -226,7 +226,7 @@ def get_root(path):
226226def assert_mode (path , mode ):
227227 """ Checks that the file identified by path has the given mode to
228228 the extent possible by the host operating system. Otherwise raises
229- an AssertionError where the mode attribute of the assertion is the
229+ an AssertionError where the mode attribute of the assertion is the
230230 mode of the file."""
231231 raise NotImplementedError
232232
0 commit comments