Skip to content

Commit f251929

Browse files
committed
Add brackets so it runs on Python 3
1 parent 5296869 commit f251929

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

markov.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
db = Db(sqlite3.connect(name + '.db'), Sql())
3939
generator = Generator(name, db, Rnd())
4040
for i in range(0, count):
41-
print generator.generate(WORD_SEPARATOR)
41+
print(generator.generate(WORD_SEPARATOR))
4242

4343
else:
44-
raise ValueError(usage)
44+
raise ValueError(usage)

parse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def parse(self, txt):
3333

3434
i += 1
3535
if i % 1000 == 0:
36-
print i
36+
print(i)
3737
sys.stdout.flush()
3838

3939
self.db.commit()

0 commit comments

Comments
 (0)