Skip to content

Commit

Permalink
sweep: #7340 fix: open tmp file in text mode
Browse files Browse the repository at this point in the history
  • Loading branch information
fstagni authored and web-flow committed Dec 6, 2023
1 parent 94a4af9 commit 989c7f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DIRAC/Resources/Computing/BatchSystems/Condor.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def submitJob(self, **kwargs):
submitOptions = kwargs["SubmitOptions"]
preamble = kwargs.get("Preamble")

jdlFile = tempfile.NamedTemporaryFile(dir=outputDir, suffix=".jdl")
jdlFile = tempfile.NamedTemporaryFile(dir=outputDir, suffix=".jdl", mode="wt")
scheddOptions = 'requirements = OpSys == "LINUX"\n'
scheddOptions += "gentenv = False"
jdlFile.write(
Expand Down

0 comments on commit 989c7f8

Please sign in to comment.