Spaces:
Sleeping
Sleeping
deepsource-autofix[bot]
commited on
Commit
•
9d7e45e
1
Parent(s):
afca090
Format code with black
Browse filesThis commit fixes the style issues introduced in afca090 according to the output
from black.
Details: https://deepsource.io/gh/MilesCranmer/PySR/transform/6fd2508e-61e2-4d2c-aa32-c8e1999e350d/
- pysr/sr.py +1 -2
pysr/sr.py
CHANGED
@@ -37,10 +37,9 @@ def install(julia_project=None, quiet=False): # pragma: no cover
|
|
37 |
else:
|
38 |
io = "stderr"
|
39 |
|
40 |
-
|
41 |
# Can't pass IO to Julia call as it evaluates to PyObject, so just directly
|
42 |
# use Main.eval:
|
43 |
-
Main.eval(f
|
44 |
try:
|
45 |
Pkg.update()
|
46 |
except RuntimeError as e:
|
|
|
37 |
else:
|
38 |
io = "stderr"
|
39 |
|
|
|
40 |
# Can't pass IO to Julia call as it evaluates to PyObject, so just directly
|
41 |
# use Main.eval:
|
42 |
+
Main.eval(f'Pkg.activate("{_escape_filename(julia_project)}", io={io})')
|
43 |
try:
|
44 |
Pkg.update()
|
45 |
except RuntimeError as e:
|