Commit 6a0f651e authored by Christoph Reiter's avatar Christoph Reiter 馃悕

examples: fix new flake8 warnings

parent 5e43d348
......@@ -125,16 +125,16 @@ class FileListModel(gtk.GenericTreeModel):
except OSError:
return None
mode = filestat.st_mode
if column is 0:
if column == 0:
if stat.S_ISDIR(mode):
return folderpb
else:
return filepb
elif column is 1:
elif column == 1:
return rowref
elif column is 2:
elif column == 2:
return filestat.st_size
elif column is 3:
elif column == 3:
return oct(stat.S_IMODE(mode))
return time.ctime(filestat.st_mtime)
......
......@@ -157,16 +157,16 @@ class FileTreeModel(gtk.GenericTreeModel):
except OSError:
return None
mode = filestat.st_mode
if column is 0:
if column == 0:
if stat.S_ISDIR(mode):
return folderpb
else:
return filepb
elif column is 1:
elif column == 1:
return os.path.basename(relpath)
elif column is 2:
elif column == 2:
return filestat.st_size
elif column is 3:
elif column == 3:
return oct(stat.S_IMODE(mode))
return time.ctime(filestat.st_mtime)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment