summaryrefslogtreecommitdiff
blob: 155ec758a74cadd96fae4f9c0c76d43c3c013997 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--- ClickHouse-1.1.54381-stable/docs/concatenate.py.bak	2018-05-20 20:30:45.958356001 +0200
+++ ClickHouse-1.1.54381-stable/docs/concatenate.py	2018-05-20 20:45:29.442341203 +0200
@@ -20,12 +20,12 @@
 import os
 
 if len(sys.argv) < 2:
-    print "Usage: concatenate.py language_dir"
-    print "Example: concatenate.py ru"
+    print("Usage: concatenate.py language_dir")
+    print("Example: concatenate.py ru")
     sys.exit(1)
 
 if not os.path.exists(sys.argv[1]):
-    print "Pass language_dir correctly. For example, 'ru'."
+    print("Pass language_dir correctly. For example, 'ru'.")
     sys.exit(2)
 
 # Configuration
@@ -43,8 +43,8 @@
         path = (l[l.index(':') + 1:]).strip(" '\n")
         files_to_concatenate.append(path)
 
-print str(len(files_to_concatenate)) + " files will be concatenated into single md-file.\nFiles:"
-print files_to_concatenate
+print(str(len(files_to_concatenate)) + " files will be concatenated into single md-file.\nFiles:")
+print(files_to_concatenate)
 
 # 2. Concatenate all of the files in the list
 
@@ -68,7 +68,7 @@
             if sharp_pos > -1:
                 return '[' + text + '](' + link[sharp_pos:] + ')'
             else:
-                print 'ERROR: Link [' + text + '](' + link + ') in file ' + path + ' has no anchor. Please provide it.'
+                print('ERROR: Link [' + text + '](' + link + ') in file ' + path + ' has no anchor. Please provide it.')
                 # return '['+text+'](#'+link.replace('/','-')+')'
 
     for l in file: