Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use 'is' and 'is not' instead of '==' and '!=' for 'None' values #11

Merged
merged 1 commit into from Mar 1, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions Extensions/OpenUitzendingGemist/plugin.py
Expand Up @@ -77,7 +77,7 @@ def resolve_http_redirect(url, depth=0):
def Csplit(data, string, number = None):
if string in data:
data = data.split(string)
if number != None:
if number is not None:
data = data[number]
return data

Expand Down Expand Up @@ -669,7 +669,7 @@ def keyGo(self):
selection = self.mmenu[self.CurSel]
else:
selection = self["menu"].l.getCurrentSelection()
if selection[1] == None:
if selection[1] is None:
return
if self.cmd == 'rtlback':
self.session.open(OpenUg, ['rtlback', selection[1]])
Expand Down Expand Up @@ -893,7 +893,7 @@ def _moveToChrStr(self):
self._lbl.visible = False

def layoutFinished(self):
if self.title == None or self.title == '':
if self.title is None or self.title == '':
self.setTitle("Open Uitzending Gemist")
else:
self.setTitle(self.title)
Expand Down Expand Up @@ -1248,7 +1248,7 @@ def loadPicPage(self):
def finish_decode(self, picture_id, info):
ptr = self.picloads[picture_id].getData()
thumbnailFile = self.imagedir + str(picture_id)
if ptr != None:
if ptr is not None:
if self.Details.has_key(picture_id):
self.Details[picture_id]["thumbnail"] = ptr
self.tmplist = []
Expand Down