diff --git a/docs/source/algorithms/RingProfile-v1.rst b/docs/source/algorithms/RingProfile-v1.rst
index 9b2b7b0a3434637c628abf553ed6f01f99c2ad22..565d0a4f98ae925f55682111c109e10ab3f91d90 100644
--- a/docs/source/algorithms/RingProfile-v1.rst
+++ b/docs/source/algorithms/RingProfile-v1.rst
@@ -71,7 +71,7 @@ Usage
     ws = CreateSampleWorkspace("Histogram","Multiple Peaks")
     wsOut = RingProfile(ws,Centre=[0,5,10],MaxRadius=5)
 
-    print ("The RingProfile has been calculated with %i bins" % wsOut.blocksize())
+    print("The RingProfile has been calculated with {} bins".format(wsOut.blocksize()))
 
 Output:
 
@@ -86,7 +86,7 @@ Output:
     ws = CreateSampleWorkspace("Histogram","Multiple Peaks")
     wsOut = RingProfile(ws,Centre=[0,5,10],MinRadius=1,MaxRadius=5,NumBins=200)
 
-    print ("The RingProfile has been calculated with %i bins" % wsOut.blocksize())
+    print("The RingProfile has been calculated with {} bins".format(wsOut.blocksize()))
     
 Output: