Skip to content

Commit 24d660a

Browse files
hduelmemtwebster
authored andcommitted
remove trailing semicolons
1 parent cb3a06d commit 24d660a

File tree

10 files changed

+25
-25
lines changed

10 files changed

+25
-25
lines changed

files/usr/share/cinnamon/cinnamon-menu-editor/cme/MenuEditor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def getMenus(self, parent):
105105

106106
item_iter = parent.iter()
107107
item_type = item_iter.next()
108-
items = [];
108+
items = []
109109
while item_type != CMenu.TreeItemType.INVALID:
110110
if item_type == CMenu.TreeItemType.DIRECTORY:
111111
item = item_iter.get_directory()

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def __init__(self):
1717
self.button.set_tooltip_text(_("Click the eyedropper, then click a color anywhere on your screen to select that color"))
1818
self.button.set_image(Gtk.Image().new_from_stock(Gtk.STOCK_COLOR_PICKER, Gtk.IconSize.BUTTON))
1919
self.button.get_property('image').show()
20-
self.button.set_events(Gdk.EventMask.POINTER_MOTION_MASK | Gdk.EventMask.POINTER_MOTION_HINT_MASK);
20+
self.button.set_events(Gdk.EventMask.POINTER_MOTION_MASK | Gdk.EventMask.POINTER_MOTION_HINT_MASK)
2121

2222
self.pack_start(self.button, False, False, 2)
2323

@@ -47,7 +47,7 @@ def on_button_clicked(self, widget):
4747

4848
window = self.grab_widget.get_window()
4949

50-
picker_cursor = Gdk.Cursor(screen.get_display(), Gdk.CursorType.CROSSHAIR);
50+
picker_cursor = Gdk.Cursor(screen.get_display(), Gdk.CursorType.CROSSHAIR)
5151

5252
grab_status = self.device.grab(window, Gdk.GrabOwnership.APPLICATION, False,
5353
Gdk.EventMask.BUTTON_RELEASE_MASK | Gdk.EventMask.BUTTON_PRESS_MASK | Gdk.EventMask.POINTER_MOTION_MASK,

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Module:
2727
category = "prefs"
2828

2929
def __init__(self, content_box):
30-
keywords = _("magnifier, talk, access, zoom, keys, contrast");
30+
keywords = _("magnifier, talk, access, zoom, keys, contrast")
3131
sidePage = SidePage(_("Accessibility"), "cs-universal-access", keywords, content_box, module=self)
3232
self.sidePage = sidePage
3333

@@ -36,8 +36,8 @@ def on_module_selected(self):
3636
print("Loading Accessibility module")
3737

3838
self.iface_settings = Gio.Settings(schema_id="org.cinnamon.desktop.interface")
39-
self.wm_settings = Gio.Settings(schema_id="org.cinnamon.desktop.wm.preferences");
40-
self.mag_settings = Gio.Settings(schema_id="org.cinnamon.desktop.a11y.magnifier");
39+
self.wm_settings = Gio.Settings(schema_id="org.cinnamon.desktop.wm.preferences")
40+
self.mag_settings = Gio.Settings(schema_id="org.cinnamon.desktop.a11y.magnifier")
4141

4242
self.sidePage.stack = SettingsStack()
4343
self.sidePage.add_widget(self.sidePage.stack)
@@ -178,7 +178,7 @@ def config_orca(button):
178178
settings.add_reveal_row(widget, "org.cinnamon.desktop.a11y.applications", "screen-keyboard-enabled")
179179

180180
activation_mode_options = [["accessible", _("Show the keyboard any time something expects input")],
181-
["on-demand", _("Show keyboard only when the user activates it")]];
181+
["on-demand", _("Show keyboard only when the user activates it")]]
182182

183183
widget = GSettingsComboBox(_("Activation mode"), "org.cinnamon.keyboard", "activation-mode", activation_mode_options)
184184
settings.add_reveal_row(widget, "org.cinnamon.desktop.a11y.applications", "screen-keyboard-enabled")

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def on_module_selected(self):
2929
switch.fill_row()
3030
page.add(switch)
3131

32-
settings = page.add_reveal_section("", "org.cinnamon", "desktop-effects-workspace");
32+
settings = page.add_reveal_section("", "org.cinnamon", "desktop-effects-workspace")
3333

3434
widget = GSettingsSwitch(_("Effects on dialog boxes"), "org.cinnamon", "desktop-effects-on-dialogs")
3535
settings.add_reveal_row(widget, "org.cinnamon", "desktop-effects-workspace")

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -211,12 +211,12 @@
211211

212212
def ensureCustomListIsValid(custom_list):
213213
if len(custom_list) > 1:
214-
return;
214+
return
215215

216216
if DUMMY_CUSTOM_ENTRY in custom_list:
217-
return;
217+
return
218218

219-
custom_list.append(DUMMY_CUSTOM_ENTRY);
219+
custom_list.append(DUMMY_CUSTOM_ENTRY)
220220

221221
class Module:
222222
comment = _("Manage keyboard settings and shortcuts")
@@ -549,7 +549,7 @@ def onAddCustomButtonClicked(self, button):
549549

550550
new_str = "custom" + str(i)
551551
array.append(new_str)
552-
ensureCustomListIsValid(array);
552+
ensureCustomListIsValid(array)
553553
parent.set_strv("custom-list", array)
554554

555555
new_path = CUSTOM_KEYS_BASENAME + "/custom" + str(i) + "/"
@@ -620,7 +620,7 @@ def onCustomKeyBindingEdited(self, kb_treeview, column, kb_column):
620620

621621
keybinding.label = dialog.name_entry.get_text()
622622
keybinding.action = dialog.command_entry.get_text().replace("%20", "\ ")
623-
keybinding.writeSettings();
623+
keybinding.writeSettings()
624624

625625
i = 0
626626
for cat in self.cat_store:
@@ -762,7 +762,7 @@ def writeSettings(self):
762762
parent = Gio.Settings.new(CUSTOM_KEYS_PARENT_SCHEMA)
763763
custom_list = parent.get_strv("custom-list")
764764
custom_list.reverse()
765-
ensureCustomListIsValid(custom_list);
765+
ensureCustomListIsValid(custom_list)
766766
parent.set_strv("custom-list", custom_list)
767767

768768
class AddCustomDialog(Gtk.Dialog):

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def __init__(self):
154154

155155
super(ScrollMethodCombo, self).__init__(_("Scrolling method"), options=self.scrolling_list, valtype=int)
156156

157-
self.touchpad_settings = Gio.Settings(schema_id="org.cinnamon.desktop.peripherals.touchpad");
157+
self.touchpad_settings = Gio.Settings(schema_id="org.cinnamon.desktop.peripherals.touchpad")
158158
self.touchpad_settings.connect("changed::two-finger-scrolling-enabled", self.on_setting_changed)
159159
self.touchpad_settings.connect("changed::edge-scrolling-enabled", self.on_setting_changed)
160160
self.on_setting_changed(None, None)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def can_show(vlist, possible):
8686
[left_switcher_label, "left"],
8787
[center_switcher_label, "center"],
8888
[right_switcher_label, "right"]
89-
];
89+
]
9090

9191
for [zone, label] in (["left", left_switcher_label],
9292
["center", center_switcher_label],

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def refresh_chooser(self, payload):
249249
dump = True
250250

251251
if theme_path == None:
252-
continue;
252+
continue
253253

254254
if os.path.exists(theme_path):
255255
chooser.add_picture(theme_path, callback, title=theme, id=theme)

files/usr/share/cinnamon/cinnamon-slideshow/cinnamon-slideshow.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,15 +129,15 @@ def on_next_file_complete(obj, res, user_data=all_files):
129129

130130
def ensure_file_is_image(self, file_list):
131131
for item in file_list:
132-
file_type = item.get_file_type();
132+
file_type = item.get_file_type()
133133
if file_type is not Gio.FileType.DIRECTORY:
134-
file_contents = item.get_content_type();
134+
file_contents = item.get_content_type()
135135
if file_contents.startswith("image"):
136136
self.add_image_to_playlist(self.collection_path + "/" + item.get_name())
137137

138138
def add_image_to_playlist(self, file_path):
139139
image = Gio.file_new_for_path(file_path)
140-
image_uri = image.get_uri();
140+
image_uri = image.get_uri()
141141
self.image_playlist.append(image_uri)
142142
if self.collection_type == BACKGROUND_COLLECTION_TYPE_DIRECTORY:
143143
self.image_playlist.sort()
@@ -166,7 +166,7 @@ def on_slideshow_source_changed(self, settings, key):
166166
def on_monitored_folder_changed(self, monitor, file1, file2, event_type):
167167
try:
168168
if event_type == Gio.FileMonitorEvent.DELETED:
169-
file_uri = file1.get_uri();
169+
file_uri = file1.get_uri()
170170
if self.image_playlist.count(file_uri) > 0:
171171
index_to_remove = self.image_playlist.index(file_uri)
172172
del self.image_playlist[index_to_remove]
@@ -179,7 +179,7 @@ def on_monitored_folder_changed(self, monitor, file1, file2, event_type):
179179
file_info = file1.query_info("standard::type,standard::content-type", Gio.FileQueryInfoFlags.NONE, None)
180180
file_type = file_info.get_file_type()
181181
if file_type is not Gio.FileType.DIRECTORY:
182-
file_contents = file_info.get_content_type();
182+
file_contents = file_info.get_content_type()
183183
if file_contents.startswith("image"):
184184
self.add_image_to_playlist(file_path)
185185
except:

files/usr/share/cinnamon/desklets/[email protected]/editorDialog.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def __init__(self, desklet_id=-1):
2828
for item in launcher_list:
2929
if item.split(":")[0] == str(self.desklet_id):
3030
launcher = item.split(":")[1][:-8]
31-
break;
31+
break
3232

3333
self.name = launcher
3434
if self.name[:24] == "cinnamon-custom-launcher":
@@ -155,10 +155,10 @@ def get_custom_id(self):
155155
i = i + 1
156156
fileRec = Gio.file_parse_name(CUSTOM_LAUNCHERS_PATH + 'cinnamon-custom-launcher-' + str(i) + '.desktop')
157157

158-
return i;
158+
return i
159159

160160
def write_custom_application(self):
161-
i = self.get_custom_id();
161+
i = self.get_custom_id()
162162

163163
file_name = "cinnamon-custom-launcher-" + str(i) + ".desktop"
164164
file_path = CUSTOM_LAUNCHERS_PATH + file_name

0 commit comments

Comments
 (0)