Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
Refactored by Sourcery (#1)
Browse files Browse the repository at this point in the history
Co-authored-by: Sourcery AI <bot@sourcery.ai>
  • Loading branch information
sourcery-ai[bot] and sourcery-ai-bot committed Jul 1, 2020
1 parent bbebead commit eaaac39
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion python/incendium/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def confirm(message, title, show_cancel=False):

return (
not bool(choice)
if choice == JOptionPane.YES_OPTION or choice == JOptionPane.NO_OPTION
if choice in [JOptionPane.YES_OPTION, JOptionPane.NO_OPTION]
else None
)

Expand Down
4 changes: 1 addition & 3 deletions python/incendium/nav.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ def _get_full_path(from_path, to_path):
for path_part in path_parts:
if path_part == PARENT_DIRECTORY and len(full_path):
full_path = full_path[:-1]
elif path_part == CURRENT_DIRECTORY:
pass
else:
elif path_part != CURRENT_DIRECTORY:
full_path.append(path_part)

return '/'.join(full_path)
Expand Down
1 change: 0 additions & 1 deletion python/system/tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,6 @@ def queryTagCalculations(paths, calculations,
print (paths, calculations, startDate, endDate, rangeHours,
rangeMinutes, aliases, includeBoundingValues,
validatesSCExec, noInterpolation, ignoreBadQuality)
pass


def read(tagPath):
Expand Down

0 comments on commit eaaac39

Please sign in to comment.