Skip to content

Commit

Permalink
Applied code linting on all files changed by the QT6 update
Browse files Browse the repository at this point in the history
Since we will test a lot, now is the time to do it.
  • Loading branch information
obilodeau committed Dec 6, 2023
1 parent ad4767e commit 202c28f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pyrdp/player/FileSystemWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,15 +218,15 @@ def downloadDirectoryRecursively(self):

dialog = None
if directoryPath == "":
QMessageBox.critical(self, "Download folder", f"Please select a valid folder. Aborting download.")
QMessageBox.critical(self, "Download folder", "Please select a valid folder. Aborting download.")
return

directoryPath += f"/{selectedFolder.name}"

try:
os.mkdir(directoryPath)
except FileExistsError:
QMessageBox.critical(self, "Download folder", f"Folder already exist. Make sure to select an empty directory. Aborting download.")
QMessageBox.critical(self, "Download folder", "Folder already exist. Make sure to select an empty directory. Aborting download.")
return

dialog = FileDownloadDialog(remotePath, directoryPath, True, self)
Expand Down
2 changes: 1 addition & 1 deletion pyrdp/player/LiveEventHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def addToDownloadQueue(self, item: Union[File, Directory], targetPath: str, dial

self.jobsQueue.add(job)

if self.currentDownload == None:
if self.currentDownload is None:
self.dispatchDownload()

def dispatchDownload(self):
Expand Down
1 change: 0 additions & 1 deletion pyrdp/player/ReplayTab.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from PySide6.QtGui import QResizeEvent, QKeyEvent
from PySide6.QtWidgets import QApplication, QWidget

from pyrdp.layer import PlayerLayer
from pyrdp.player.BaseTab import BaseTab
from pyrdp.player.PlayerEventHandler import PlayerEventHandler
from pyrdp.player.Replay import Replay, ReplayReader
Expand Down
2 changes: 1 addition & 1 deletion pyrdp/player/gdi/draw.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
FastIndex, PolygonSc, PolygonCb, PolyLine, FastGlyph, EllipseSc, EllipseCb, GlyphIndex, Brush, \
BACKMODE_TRANSPARENT

from pyrdp.ui import QRemoteDesktop, RDPBitmapToQtImage
from pyrdp.ui import RDPBitmapToQtImage

from .cache import BitmapCache, BrushCache, PaletteCache, GlyphCache, GlyphEntry
from .raster import set_rop3, set_rop2
Expand Down

0 comments on commit 202c28f

Please sign in to comment.