diff --git a/docs/source/algorithms/SaveILLCosmosAscii-v1.rst b/docs/source/algorithms/SaveILLCosmosAscii-v1.rst
index e232d1f046f643587c870edc48a457dbd1eea682..7f7bd9edd3c993393ff209f0b301cfe8c95da639 100644
--- a/docs/source/algorithms/SaveILLCosmosAscii-v1.rst
+++ b/docs/source/algorithms/SaveILLCosmosAscii-v1.rst
@@ -40,7 +40,7 @@ Usage
     # perform the algorithm
     SaveILLCosmosAscii(InputWorkspace=ws1,Filename=savefile)
 
-    print "File Exists:", os.path.exists(savefile)
+    print("File Exists: {}".format(os.path.exists(savefile))
 
 .. testcleanup:: ExILLCosmosSimple