diff --git a/docs/DEVGUIDE.rst b/docs/DEVGUIDE.rst index a53235dab2..744ddadf4b 100644 --- a/docs/DEVGUIDE.rst +++ b/docs/DEVGUIDE.rst @@ -28,7 +28,7 @@ Once you have a compiler installed run: make test-memleaks make test-coverage make lint-all # Run Python and C linter - make fix-all # Fix linting erors + make fix-all # Fix linting errors make uninstall make help diff --git a/docs/index.rst b/docs/index.rst index c5ebf59e11..4959801f68 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -1294,7 +1294,7 @@ Process class .. method:: cwd() The process current working directory as an absolute path. If cwd cannot be - determined for some internal reason (e.g. system process or directiory no + determined for some internal reason (e.g. system process or directory no longer exists) it may return an empty string. .. versionchanged:: 5.6.4 added support for NetBSD diff --git a/psutil/__init__.py b/psutil/__init__.py index 91f3dd65c3..71ae4533a9 100644 --- a/psutil/__init__.py +++ b/psutil/__init__.py @@ -2037,7 +2037,7 @@ def swap_memory(): # ===================================================================== -# --- disks/paritions related functions +# --- disks/partitions related functions # ===================================================================== diff --git a/psutil/_pslinux.py b/psutil/_pslinux.py index 2a59bfe13d..7c1a4f9726 100644 --- a/psutil/_pslinux.py +++ b/psutil/_pslinux.py @@ -417,7 +417,7 @@ def calculate_avail_vmem(mems): def virtual_memory(): """Report virtual memory stats. - This implementation mimicks procps-ng-3.3.12, aka "free" CLI tool: + This implementation mimics procps-ng-3.3.12, aka "free" CLI tool: https://gitlab.com/procps-ng/procps/blob/ 24fd2605c51fccc375ab0287cec33aa767f06718/proc/sysinfo.c#L778-791 The returned values are supposed to match both "free" and "vmstat -s" diff --git a/psutil/_pssunos.py b/psutil/_pssunos.py index dddbece1f3..20987ecc81 100644 --- a/psutil/_pssunos.py +++ b/psutil/_pssunos.py @@ -730,7 +730,7 @@ def toaddr(start, end): # readlink() even if it exists (ls shows it). # If that's the case we just return the # unresolved link path. - # This seems an incosistency with /proc similar + # This seems an inconsistency with /proc similar # to: http://goo.gl/55XgO name = '%s/%s/path/%s' % (procfs_path, self.pid, name) hit_enoent = True diff --git a/psutil/arch/osx/sensors.c b/psutil/arch/osx/sensors.c index 28ee5f0b24..53626c2dc4 100644 --- a/psutil/arch/osx/sensors.c +++ b/psutil/arch/osx/sensors.c @@ -60,7 +60,7 @@ psutil_sensors_battery(PyObject *self, PyObject *args) { power_sources_information, CFSTR(kIOPSCurrentCapacityKey)); if (!CFNumberGetValue(capacity_ref, kCFNumberSInt32Type, &capacity)) { PyErr_SetString(PyExc_RuntimeError, - "No battery capacity infomration in power sources info"); + "No battery capacity information in power sources info"); goto error; } diff --git a/psutil/arch/solaris/environ.c b/psutil/arch/solaris/environ.c index 4b4e041a45..a2c7938556 100644 --- a/psutil/arch/solaris/environ.c +++ b/psutil/arch/solaris/environ.c @@ -240,7 +240,7 @@ ptr_size_by_psinfo(psinfo_t info) { /* * Count amount of pointers in a block which ends with NULL. - * @param fd a discriptor of /proc/PID/as special file. + * @param fd a descriptor of /proc/PID/as special file. * @param offt an offset of block of pointers at the file. * @param ptr_size a pointer size (allowed values: {4, 8}). * @return amount of non-NULL pointers or -1 in case of error. diff --git a/psutil/tests/test_system.py b/psutil/tests/test_system.py index d517b7405c..c1b88f5951 100755 --- a/psutil/tests/test_system.py +++ b/psutil/tests/test_system.py @@ -88,7 +88,7 @@ def test_process_iter(self): with self.assertRaises(psutil.AccessDenied): list(psutil.process_iter()) - def test_prcess_iter_w_attrs(self): + def test_process_iter_w_attrs(self): for p in psutil.process_iter(attrs=['pid']): self.assertEqual(list(p.info.keys()), ['pid']) with self.assertRaises(ValueError):