diff --git a/docs/source/algorithms/SaveHKL-v1.rst b/docs/source/algorithms/SaveHKL-v1.rst index 81f8ee26e9f916f63ee9be1dafb1bed7be60d3fc..c2cc616f34603206472fb58ec6b245e4948d635f 100644 --- a/docs/source/algorithms/SaveHKL-v1.rst +++ b/docs/source/algorithms/SaveHKL-v1.rst @@ -57,7 +57,7 @@ Usage peaks = LoadIsawPeaks(Filename=r'Peaks5637.integrate') SaveHKL(peaks, path) - print os.path.isfile(path) + print(os.path.isfile(path)) Output: @@ -86,13 +86,13 @@ Output: #load a peaks workspace from file peaks = LoadIsawPeaks(Filename=r'Peaks5637.integrate') - print "Number of peaks in table %d" % peaks.rowCount() + print("Number of peaks in table {}".format(peaks.rowCount())) path = os.path.join(os.path.expanduser("~"), "MyPeaks.hkl") SaveHKL(peaks, path, MinWavelength=0.5, MaxWavelength=2,MinDSpacing=0.2, SortBy='Bank') peaks = LoadHKL(path) - print "Number of peaks in table %d" % peaks.rowCount() + print("Number of peaks in table {}".format(peaks.rowCount())) Output: