Skip to content

Commit d7f4121

Browse files
committed
Formatting fixes
1 parent d6d50c0 commit d7f4121

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

pyamdgpuinfo/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
if getattr(value, "__module__", "").startswith("pyamdgpuinfo."):
66
value.__module__ = __name__
77
# make sure value doesn't hang around as a module attribute
8-
del value # pylint: disable=undefined-loop-variable
8+
del value # pylint: disable=undefined-loop-variable

pyamdgpuinfo/_impl.pyx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,6 @@ cdef class GPUInfo:
367367
if self.utilisation_polling:
368368
raise RuntimeError("Polling already started")
369369
pthread_cy.pthread_attr_init(&attr)
370-
# why detached?
371370
pthread_cy.pthread_attr_setdetachstate(&attr, pthread_cy.PTHREAD_CREATE_DETACHED)
372371
self.thread_args = <poll_args_t*>malloc(sizeof(poll_args_t))
373372
if not self.thread_args:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
sources=["pyamdgpuinfo/_impl.pyx"],
1212
include_dirs=["/usr/include/libdrm"],
1313
libraries=["drm_amdgpu"],
14-
extra_compile_args=['-DCYTHON_USE_TYPE_SPECS=1'],
14+
extra_compile_args=["-DCYTHON_USE_TYPE_SPECS=1"],
1515
)
1616
]
1717

0 commit comments

Comments
 (0)