Skip to content

Commit

Permalink
Fix typos again
Browse files Browse the repository at this point in the history
Found via `codespell -L bacic,nd,hda,numer,fo,ser,pytho,syste,ue` and
`typos --hidden --format brief`
  • Loading branch information
kianmeng committed Mar 28, 2024
1 parent f51f62b commit 437fa12
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/DEVGUIDE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion psutil/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2037,7 +2037,7 @@ def swap_memory():


# =====================================================================
# --- disks/paritions related functions
# --- disks/partitions related functions
# =====================================================================


Expand Down
2 changes: 1 addition & 1 deletion psutil/_pslinux.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion psutil/_pssunos.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion psutil/arch/osx/sensors.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion psutil/arch/solaris/environ.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion psutil/tests/test_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 437fa12

Please sign in to comment.