diff --git a/DetectorDescription/RegionSelector/python/RegSelConfig.py b/DetectorDescription/RegionSelector/python/RegSelConfig.py index ad732614900ec4475a18abe5f6f7ded8c0598ccf..506891c1881eaa92df836be860c5635b511e3542 100644 --- a/DetectorDescription/RegionSelector/python/RegSelConfig.py +++ b/DetectorDescription/RegionSelector/python/RegSelConfig.py @@ -165,7 +165,7 @@ if __name__ == "__main__": cfg.getService("IOVDbSvc").OutputLevel=DEBUG - cfg.store( file( "test.pkl", "wb" ) ) + cfg.store( open( "test.pkl", "wb" ) ) print("used flags") ConfigFlags.dump() cfg.run(0) diff --git a/Simulation/G4Atlas/G4AtlasServices/test/G4AtlasServicesConfig_test.py b/Simulation/G4Atlas/G4AtlasServices/test/G4AtlasServicesConfig_test.py index a15b67aa6d1e6f3df05972c0f7a014e15ac71c8b..58f97be22900c9adf1bce2dee0c672f204b33ee0 100755 --- a/Simulation/G4Atlas/G4AtlasServices/test/G4AtlasServicesConfig_test.py +++ b/Simulation/G4Atlas/G4AtlasServices/test/G4AtlasServicesConfig_test.py @@ -55,7 +55,7 @@ if __name__ == '__main__': ConfigFlags.dump() - f=open("test.pkl","w") + f=open("test.pkl","wb") cfg.store(f) f.close()