Skip to content

Commit

Permalink
Python 3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenDowney committed Apr 15, 2015
1 parent 4ea0c59 commit aa64f60
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def Likelihood(self, data, hypo):


def main():
hypos = xrange(100, 1001)
hypos = range(100, 1001)
suite = Train(hypos)

suite.Update(321)
Expand Down
2 changes: 1 addition & 1 deletion train2.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def Likelihood(self, data, hypo):


def main():
hypos = xrange(1, 101)
hypos = range(1, 101)
suite = Train(hypos)

suite.Update(25)
Expand Down
2 changes: 1 addition & 1 deletion train_soln.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def Likelihood(self, data, hypo):


def main():
hypos = xrange(100, 1001)
hypos = range(100, 1001)
suite = Train(hypos)

suite.Update(321)
Expand Down

0 comments on commit aa64f60

Please sign in to comment.