Skip to content

Commit

Permalink
PEP8 double aggressive W291 ~ W293 and W391
Browse files Browse the repository at this point in the history
  • Loading branch information
persianpros committed Apr 14, 2021
1 parent a619491 commit 14e6641
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugin/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def gotScreenshot(self, data, retval, extra_args=None):
filename = extra_args
else:
filename = ""

if not config.plugins.shootyourscreen.timeout.value == "off":
messagetimeout = int(config.plugins.shootyourscreen.timeout.value)
error = False
Expand Down Expand Up @@ -140,7 +140,7 @@ def getFilename(self):
now = now.strftime("%Y-%m-%d_%H-%M-%S")

screenshottime = "screenshot_" + now

if config.plugins.shootyourscreen.pictureformat.getText() == "bmp":
fileextension = ".bmp"
elif config.plugins.shootyourscreen.pictureformat.getText() == "jpg":
Expand Down Expand Up @@ -171,7 +171,7 @@ class ShootYourScreenConfig(Screen, ConfigListScreen):
def __init__(self, session):
self.session = session
Screen.__init__(self, session)

self.createConfigList()

ConfigListScreen.__init__(self, self.list, session=self.session, on_change=self.changedEntry)
Expand All @@ -187,7 +187,7 @@ def __init__(self, session):
"cancel": self.cancel,
"ok": self.keyGreen,
}, -2)

self.onShown.append(self.setWindowTitle)

def setWindowTitle(self):
Expand Down

0 comments on commit 14e6641

Please sign in to comment.