From 0ad2fc059545068da13d87e4a68d64f487ecbf46 Mon Sep 17 00:00:00 2001
From: Marko Petric <marko.petric@cern.ch>
Date: Thu, 25 Jul 2019 15:41:20 +0200
Subject: [PATCH] add io.open

---
 DDCore/python/lcdd.py                 | 1 +
 DDG4/python/DDSim/DD4hepSimulation.py | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/DDCore/python/lcdd.py b/DDCore/python/lcdd.py
index 625249d7a..915c6db45 100644
--- a/DDCore/python/lcdd.py
+++ b/DDCore/python/lcdd.py
@@ -18,6 +18,7 @@ import SystemOfUnits
 import math
 import logging
 from six.moves import range
+from io import open
 from ROOT import SetOwnership, dd4hep, TGeoMixture, TGeoMedium, gGeoManager, TNamed
 
 logging.basicConfig(format='%(levelname)s: %(message)s')
diff --git a/DDG4/python/DDSim/DD4hepSimulation.py b/DDG4/python/DDSim/DD4hepSimulation.py
index d3141dcf0..f9e15e3db 100644
--- a/DDG4/python/DDSim/DD4hepSimulation.py
+++ b/DDG4/python/DDSim/DD4hepSimulation.py
@@ -7,10 +7,11 @@ Based on M. Frank and F. Gaede runSim.py
 
 """
 from __future__ import absolute_import, unicode_literals, division
-import six
 __RCSID__ = "$Id$"
+import six
 from g4units import *
 import logging
+from io import open
 
 logging.basicConfig(format='%(levelname)s: %(message)s')
 logger = logging.getLogger(__name__)
-- 
GitLab