Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos again #2388

Merged
merged 1 commit into from
Mar 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading