Skip to content

Commit 4c5deb0

Browse files
authored
fix python docstring style (#11258)
1 parent 86cda6c commit 4c5deb0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

files/usr/share/cinnamon/cinnamon-screensaver-lock-dialog/cinnamon-screensaver-lock-dialog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
class MainWindow:
1919

20-
''' Create the UI '''
20+
""" Create the UI """
2121

2222
def __init__(self):
2323

files/usr/share/cinnamon/cinnamon-settings/bin/imtools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,11 +1180,11 @@ def checkboard(size, delta=8, fg=(128, 128, 128), bg=(204, 204, 204)):
11801180
n = int(dim / delta) + 1 # FIXME: now acts like square->nx, ny
11811181

11821182
def sq_start(i):
1183-
"Return the x/y start coord of the square at column/row i."
1183+
"""Return the x/y start coord of the square at column/row i."""
11841184
return i * delta
11851185

11861186
def square(i, j):
1187-
"Return the square corners"
1187+
"""Return the square corners"""
11881188
return map(sq_start, [i, j, i + 1, j + 1])
11891189

11901190
image = Image.new("RGB", size, bg)

files/usr/share/cinnamon/cinnamon-settings/modules/cs_user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
from xapp.GSettingsWidgets import *
2525

2626
class PasswordError(Exception):
27-
'''Exception raised when an incorrect password is supplied.'''
27+
"""Exception raised when an incorrect password is supplied."""
2828
pass
2929

3030

0 commit comments

Comments
 (0)