Skip to content

Commit

Permalink
flake fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rhl-bthr authored and Aniket21mathur committed Jul 3, 2019
1 parent 60ad202 commit b9d773f
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions extensions/cpsection/language/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ def print_languages():
found_lang = False
for lang in languages:
if lang[2].split('.')[0] == code.split('.')[0]:
print(lang[0].replace(' ', '_') + '/' + \
lang[1].replace(' ', '_'))
print(lang[0].replace(' ', '_') + '/' +
lang[1].replace(' ', '_'))
found_lang = True
break
if not found_lang:
Expand Down
1 change: 0 additions & 1 deletion extensions/cpsection/webaccount/web_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.



class WebService():
def get_icon_name(self):
raise "Not implemented"
Expand Down
4 changes: 2 additions & 2 deletions src/jarabe/controlpanel/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ def main():
if method.startswith('get_'):
print(' %s' % method[4:])
elif method.startswith('clear_'):
print(' %s (use the -c argument with this option)' \
% method[6:])
print(' %s (use the -c argument with this option)'
% method[6:])
if option in ('-g'):
for module in modules:
method = getattr(module, 'print_' + key, None)
Expand Down
2 changes: 1 addition & 1 deletion src/jarabe/journal/palettes.py
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ def __confirmation_response_cb(self, alert, response):
# this is only in the case the operation already started
# and the user want stop it.
self._stop_batch_execution()
elif hasattr(self, '_object_index') == False:
elif not hasattr(self, '_object_index'):
self._object_index = 0
GLib.idle_add(self._operate_by_uid_internal)

Expand Down
2 changes: 1 addition & 1 deletion src/jarabe/journal/projectview.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def _description_tags_focus_out_event_cb(self, text_view, event):
self._update_entry()

def _update_entry(self):
#updating description
# updating description
bounds = self._description.get_buffer().get_bounds()
old_description = self.project_metadata.get('description', None)
new_description = self._description.get_buffer().get_text(
Expand Down
2 changes: 1 addition & 1 deletion src/jarabe/model/bundleregistry.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def _scan_directory(self, path):
' bundle %s:', bundle_dir)

bundle_dirs = list(bundles.keys())
bundle_dirs.sort(key = lambda x: bundles[x])
bundle_dirs.sort(key=lambda x: bundles[x])
for folder in bundle_dirs:
try:
self.add_bundle(folder, emit_signals=False)
Expand Down

0 comments on commit b9d773f

Please sign in to comment.