Skip to content

Commit

Permalink
fix some typos (giampaolo#2085)
Browse files Browse the repository at this point in the history
Signed-off-by: cuishuang <[email protected]>
  • Loading branch information
cuishuang authored Mar 15, 2022
1 parent 8091fa5 commit 446f4bf
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion docs/DEVGUIDE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ Unit tests are automatically run on every ``git push`` on **Linux**, **macOS**,
.. image:: https://img.shields.io/appveyor/ci/giampaolo/psutil/master.svg?maxAge=3600&label=Windows
:target: https://ci.appveyor.com/project/giampaolo/psutil

OpenBSD, NetBSD, AIX and Solaris does not have continuos test integration.
OpenBSD, NetBSD, AIX and Solaris does not have continuous test integration.

Documentation
-------------
Expand Down
6 changes: 3 additions & 3 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,7 @@ Process class

Here's a list of methods which can take advantage of the speedup depending
on what platform you're on.
In the table below horizontal emtpy rows indicate what process methods can
In the table below horizontal empty rows indicate what process methods can
be efficiently grouped together internally.
The last column (speedup) shows an approximation of the speedup you can get
if you call all the methods together (best case scenario).
Expand Down Expand Up @@ -1194,8 +1194,8 @@ Process class

.. versionadded:: 4.0.0
.. versionchanged:: 5.3.0 added SunOS support
.. versionchanged:: 5.6.3 added AIX suport
.. versionchanged:: 5.7.3 added BSD suport
.. versionchanged:: 5.6.3 added AIX support
.. versionchanged:: 5.7.3 added BSD support

.. method:: create_time()

Expand Down
2 changes: 1 addition & 1 deletion make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

rem ==========================================================================
rem Shortcuts for various tasks, emulating UNIX "make" on Windows.
rem It is primarly intended as a shortcut for compiling / installing
rem It is primarily intended as a shortcut for compiling / installing
rem psutil ("make.bat build", "make.bat install") and running tests
rem ("make.bat test").
rem
Expand Down
2 changes: 1 addition & 1 deletion psutil/_pslinux.py
Original file line number Diff line number Diff line change
Expand Up @@ -1675,7 +1675,7 @@ def _parse_stat_file(self):
"""Parse /proc/{pid}/stat file and return a dict with various
process info.
Using "man proc" as a reference: where "man proc" refers to
position N always substract 3 (e.g ppid position 4 in
position N always subtract 3 (e.g ppid position 4 in
'man proc' == position 1 in here).
The return value is cached in case oneshot() ctx manager is
in use.
Expand Down
2 changes: 1 addition & 1 deletion psutil/_pswindows.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def swap_memory():
free_system = mem[3]

# Despite the name PageFile refers to total system memory here
# thus physical memory values need to be substracted to get swap values
# thus physical memory values need to be subtracted to get swap values
total = total_system - total_phys
free = min(total, free_system - free_phys)
used = total - free
Expand Down
2 changes: 1 addition & 1 deletion psutil/arch/osx/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ psutil_cpu_freq(PyObject *self, PyObject *args) {
size_t len = sizeof(curr);
size_t size = sizeof(min);

// also availble as "hw.cpufrequency" but it's deprecated
// also available as "hw.cpufrequency" but it's deprecated
mib[0] = CTL_HW;
mib[1] = HW_CPU_FREQ;

Expand Down
2 changes: 1 addition & 1 deletion psutil/arch/solaris/v10/ifaddrs.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Refrences:
/* References:
* https://lists.samba.org/archive/samba-technical/2009-February/063079.html
* http://stackoverflow.com/questions/4139405/#4139811
* https://github.com/steve-o/openpgm/blob/master/openpgm/pgm/getifaddrs.c
Expand Down
2 changes: 1 addition & 1 deletion psutil/arch/windows/process_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ psutil_handle_from_pid(DWORD pid, DWORD access) {
}


// Check for PID existance. Return 1 if pid exists, 0 if not, -1 on error.
// Check for PID existence. Return 1 if pid exists, 0 if not, -1 on error.
int
psutil_pid_is_running(DWORD pid) {
HANDLE hProcess;
Expand Down
2 changes: 1 addition & 1 deletion psutil/tests/test_linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ def test_emulate_fallbacks(self):
self.assertEqual(psutil._pslinux.cpu_count_logical(), original)
assert m.called

# Let's have open() return emtpy data and make sure None is
# Let's have open() return empty data and make sure None is
# returned ('cause we mimick os.cpu_count()).
with mock.patch('psutil._common.open', create=True) as m:
self.assertIsNone(psutil._pslinux.cpu_count_logical())
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 @@ -510,7 +510,7 @@ def test_cpu_stats(self):
if not AIX and name in ('ctx_switches', 'interrupts'):
self.assertGreater(value, 0)

@unittest.skipIf(not HAS_CPU_FREQ, "not suported")
@unittest.skipIf(not HAS_CPU_FREQ, "not supported")
def test_cpu_freq(self):
def check_ls(ls):
for nt in ls:
Expand Down

0 comments on commit 446f4bf

Please sign in to comment.