Skip to content

Commit

Permalink
Merge pull request #7343 from DIRACGridBot/cherry-pick-2-3e9dfb30c-in…
Browse files Browse the repository at this point in the history
…tegration

[sweep:integration] fix: open tmp file in text mode
  • Loading branch information
chrisburr authored Dec 6, 2023
2 parents 94a4af9 + 989c7f8 commit 01491bf
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 01491bf

Please sign in to comment.