From 371f8c0417e705a05ad5dbb5ebec24430e7023a5 Mon Sep 17 00:00:00 2001
From: Markus Holzer <markus.holzer@fau.de>
Date: Wed, 10 Nov 2021 16:57:11 +0100
Subject: [PATCH] Minor fix

---
 pystencils/cpu/cpujit.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pystencils/cpu/cpujit.py b/pystencils/cpu/cpujit.py
index 745bbcc84..ac1e8ac4f 100644
--- a/pystencils/cpu/cpujit.py
+++ b/pystencils/cpu/cpujit.py
@@ -602,7 +602,7 @@ def compile_module(code, code_hash, base_dir, compile_flags=None):
 
     if not os.path.exists(object_file):
         try:
-            with open(src_file, 'xw') as f:
+            with open(src_file, 'x') as f:
                 code.write_to_file(f)
         except FileExistsError:
             pass
-- 
GitLab