Skip to content

Commit

Permalink
Apply suggested code style changes
Browse files Browse the repository at this point in the history
Co-authored-by: Carlos Cordoba <ccordoba12@gmail.com>
  • Loading branch information
rear1019 and ccordoba12 committed Apr 29, 2024
1 parent f15377f commit 47a1877
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion spyder/plugins/explorer/widgets/explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,12 @@ def dragMoveEvent(self, event):
def startDrag(self, dropActions):
"""Reimplement Qt Method - handle drag event"""
data = QMimeData()
data.setUrls([QUrl.fromLocalFile(fname) for fname in self.get_selected_filenames()])
data.setUrls(
[
QUrl.fromLocalFile(fname)
for fname in self.get_selected_filenames()
]
)
drag = QDrag(self)
drag.setMimeData(data)
drag.exec_()
Expand Down

0 comments on commit 47a1877

Please sign in to comment.