mirror of
https://github.com/Kilian/Trimage.git
synced 2026-01-26 01:58:41 -05:00
Reorder imports (PEP-8)
This commit is contained in:
parent
1ecff8b3d9
commit
fa94b546fb
2 changed files with 8 additions and 10 deletions
|
|
@ -3,26 +3,22 @@
|
|||
import time
|
||||
import sys
|
||||
import errno
|
||||
from os import listdir
|
||||
from os import path
|
||||
from os import remove
|
||||
from os import access
|
||||
from os import W_OK as WRITEABLE
|
||||
from os import listdir, path, remove, access, W_OK
|
||||
from shutil import copy
|
||||
from subprocess import call, PIPE
|
||||
from optparse import OptionParser
|
||||
from multiprocessing import cpu_count
|
||||
from queue import Queue
|
||||
|
||||
from PyQt5.QtCore import *
|
||||
from PyQt5.QtGui import *
|
||||
from PyQt5.QtWidgets import *
|
||||
|
||||
from tools import human_readable_size
|
||||
from queue import Queue
|
||||
from ThreadPool import ThreadPool
|
||||
from multiprocessing import cpu_count
|
||||
|
||||
from ui import Ui_trimage
|
||||
|
||||
|
||||
VERSION = "1.0.5"
|
||||
|
||||
|
||||
|
|
@ -397,7 +393,7 @@ class Image:
|
|||
self.valid = False
|
||||
self.reset()
|
||||
self.fullpath = fullpath
|
||||
if path.isfile(self.fullpath) and access(self.fullpath, WRITEABLE):
|
||||
if path.isfile(self.fullpath) and access(self.fullpath, W_OK):
|
||||
self.filetype = path.splitext(self.fullpath)[1][1:]
|
||||
if self.filetype == "jpg":
|
||||
self.filetype = "jpeg"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,11 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
from os import path
|
||||
|
||||
from PyQt5.QtCore import *
|
||||
from PyQt5.QtGui import *
|
||||
from PyQt5.QtWidgets import *
|
||||
from os import path
|
||||
|
||||
|
||||
class TrimageTableView(QTableView):
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue