Skip to content
This repository was archived by the owner on Aug 31, 2025. It is now read-only.

Commit b22c450

Browse files
committed
Beta 2
1 parent 709dd04 commit b22c450

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

mu/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
__title__ = "mu-editor"
77
__description__ = "A simple Python editor for beginner programmers."
88

9-
__version__ = "1.1.0.beta.1"
9+
__version__ = "1.1.0.beta.2"
1010

1111
__license__ = "GPL3"
1212
__url__ = "https://github.com/mu-editor/mu"

mu/interface/dialogs.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,9 @@ def replace_flag(self):
573573

574574

575575
class PackageDialog(QDialog):
576-
"""Display the output of the pip commands needed to remove or install packages
576+
"""
577+
Display the output of the pip commands needed to remove or install
578+
packages.
577579
578580
Because the QProcess mechanism we're using is asynchronous, we have to
579581
manage the pip requests via `pip_queue`. When one request is signalled
@@ -616,7 +618,9 @@ def setup(self, to_remove, to_add):
616618
QTimer.singleShot(2, self.next_pip_command)
617619

618620
def next_pip_command(self):
619-
"""Run the next pip command, finishing if there is none"""
621+
"""
622+
Run the next pip command, finishing if there is none.
623+
"""
620624
if self.pip_queue:
621625
command, packages = self.pip_queue.pop()
622626
self.run_pip(command, packages)
@@ -643,7 +647,6 @@ def run_pip(self, command, packages):
643647
raise RuntimeError(
644648
"Invalid pip command: %s %s" % (command, packages)
645649
)
646-
647650
pip_fn(
648651
packages,
649652
slots=venv.Slots(

mu/virtual_environment.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@ def __init__(self, pip_executable):
173173
def run(
174174
self, command, *args, wait_for_s=30.0, slots=Process.Slots(), **kwargs
175175
):
176-
"""Run a command with args, treating kwargs as Posix switches
176+
"""
177+
Run a command with args, treating kwargs as Posix switches.
177178
178179
eg run("python", version=True)
179180
run("python", "-c", "import sys; print(sys.executable)")
@@ -217,7 +218,7 @@ def run(
217218

218219
def install(self, packages, slots=Process.Slots(), **kwargs):
219220
"""
220-
Use pip to install a package or packages
221+
Use pip to install a package or packages.
221222
222223
If the first parameter is a string one package is installed; otherwise
223224
it is assumed to be an iterable of package names.

0 commit comments

Comments
 (0)