Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/util.py @ 51917:8f3cbea2547c
util: add a comment to suppress a PyCharm warning about a PEP 8 violation
Slowly trying to get rid of silly warnings, so that real problems aren't hidden.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sun, 22 Sep 2024 17:18:05 -0400 |
parents | f4733654f144 |
children | 1d95a87813ad |
comparison
equal
deleted
inserted
replaced
51916:1a640aa20e48 | 51917:8f3cbea2547c |
---|---|
3356 | 3356 |
3357 If no estimate can be provided on the platform, returns None. | 3357 If no estimate can be provided on the platform, returns None. |
3358 """ | 3358 """ |
3359 if pycompat.sysplatform.startswith(b'win'): | 3359 if pycompat.sysplatform.startswith(b'win'): |
3360 # On Windows, use the GlobalMemoryStatusEx kernel function directly. | 3360 # On Windows, use the GlobalMemoryStatusEx kernel function directly. |
3361 # noinspection PyPep8Naming | |
3361 from ctypes import c_long as DWORD, c_ulonglong as DWORDLONG | 3362 from ctypes import c_long as DWORD, c_ulonglong as DWORDLONG |
3362 from ctypes.wintypes import ( # pytype: disable=import-error | 3363 from ctypes.wintypes import ( # pytype: disable=import-error |
3363 Structure, | 3364 Structure, |
3364 byref, | 3365 byref, |
3365 sizeof, | 3366 sizeof, |