Skip to content

Commit

Permalink
Use Python 3-compatible print function.
Browse files Browse the repository at this point in the history
  • Loading branch information
benmwebb committed Dec 18, 2015
1 parent 68df890 commit 79208e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion modeling/data/angle.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
and they are therefore not supported (but may work anyway).
"""

from __future__ import print_function

__author__ = "Kristian Rother"
__copyright__ = "Copyright 2007-2009 2008, The Cogent Project"
__contributors__ = ["Kristian Rother", "Sandra Smit"]
Expand Down Expand Up @@ -183,7 +185,7 @@ def print_output(dihe_histo):


nn=nn+1
print nn,file
print(nn,file)
if nn%1000==0: print_output(dihe_histo)

logic=False
Expand Down
4 changes: 3 additions & 1 deletion modeling/data/dihedral.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
and they are therefore not supported (but may work anyway).
"""

from __future__ import print_function

__author__ = "Kristian Rother"
__copyright__ = "Copyright 2007-2009 2008, The Cogent Project"
__contributors__ = ["Kristian Rother", "Sandra Smit"]
Expand Down Expand Up @@ -174,7 +176,7 @@ def print_output(dihe_histo):


nn=nn+1
print nn,file
print(nn,file)
if nn%1000==0: print_output(dihe_histo)

logic=False
Expand Down

0 comments on commit 79208e4

Please sign in to comment.