We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5296869 commit f251929Copy full SHA for f251929
markov.py
@@ -38,7 +38,7 @@
38
db = Db(sqlite3.connect(name + '.db'), Sql())
39
generator = Generator(name, db, Rnd())
40
for i in range(0, count):
41
- print generator.generate(WORD_SEPARATOR)
+ print(generator.generate(WORD_SEPARATOR))
42
43
else:
44
- raise ValueError(usage)
+ raise ValueError(usage)
parse.py
@@ -33,7 +33,7 @@ def parse(self, txt):
33
34
i += 1
35
if i % 1000 == 0:
36
- print i
+ print(i)
37
sys.stdout.flush()
self.db.commit()
0 commit comments