Skip to content

Commit d82c8f2

Browse files
committed
fix: open tmp file in text mode
1 parent ccc050e commit d82c8f2

File tree

1 file changed

+1
-1
lines changed
  • src/DIRAC/Resources/Computing/BatchSystems

1 file changed

+1
-1
lines changed

src/DIRAC/Resources/Computing/BatchSystems/Condor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def submitJob(self, **kwargs):
176176
] = "The WholeNode option is deprecated and not applied anymore, please remove it from the CS to continue"
177177
return resultDict
178178

179-
jdlFile = tempfile.NamedTemporaryFile(dir=outputDir, suffix=".jdl")
179+
jdlFile = tempfile.NamedTemporaryFile(dir=outputDir, suffix=".jdl", mode="wt")
180180
scheddOptions = 'requirements = OpSys == "LINUX"\n'
181181
scheddOptions += "gentenv = False"
182182
jdlFile.write(

0 commit comments

Comments
 (0)