Skip to content

Commit fb51149

Browse files
committed
Making doc strings complaint with PEP-0257
1 parent 166e05a commit fb51149

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

Xlib/ext/nvcontrol.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -168,14 +168,16 @@ def get_irq(self, target):
168168

169169

170170
def supports_framelock(self, target):
171-
"""returns whether the underlying GPU supports Frame Lock. All of the
172-
other frame lock attributes are only applicable if this returns True."""
171+
"""returns whether the underlying GPU supports Frame Lock.
172+
173+
All of the other frame lock attributes are only applicable if this returns True."""
173174
return query_int_attribute(self, target, 0, NV_CTRL_FRAMELOCK) == 1
174175

175176

176177
def gvo_supported(self, screen):
177-
"""returns whether this X screen supports GVO; if this screen does not
178-
support GVO output, then all other GVO attributes are unavailable."""
178+
"""returns whether this X screen supports GVO
179+
180+
If this screen does not support GVO output, then all other GVO attributes are unavailable."""
179181
return query_int_attribute(self, screen, [], NV_CTRL_GVO_SUPPORTED)
180182

181183

@@ -185,9 +187,9 @@ def get_core_temp(self, target):
185187

186188

187189
def get_core_threshold(self, target):
188-
"""return the current GPU core slowdown threshold temperature. It
189-
reflects the temperature at which the GPU is throttled to prevent
190-
overheating."""
190+
"""return the current GPU core slowdown threshold temperature.
191+
192+
Itreflects the temperature at which the GPU is throttled to prevent overheating."""
191193
return query_int_attribute(self, target, 0, NV_CTRL_GPU_CORE_THRESHOLD)
192194

193195

@@ -202,8 +204,7 @@ def get_max_core_threshold(self, target):
202204

203205

204206
def get_ambient_temp(self, target):
205-
"""return the current temperature in the immediate neighbourhood of
206-
the GPU driving the X screen."""
207+
"""return the current temperature in the immediate neighbourhood of the GPU driving the X screen."""
207208
return query_int_attribute(self, target, 0, NV_CTRL_AMBIENT_TEMPERATURE)
208209

209210

0 commit comments

Comments
 (0)