Skip to content

Commit

Permalink
fixed python3 issues with fixed2free2, removed unnecessary file
Browse files Browse the repository at this point in the history
  • Loading branch information
ylikx committed Feb 7, 2017
1 parent bdf10a9 commit 765e27a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 98 deletions.
6 changes: 4 additions & 2 deletions fixed2free/Test_fixed2free2.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@

import unittest
from fixed2free2 import *
from StringIO import StringIO

try:
from StringIO import StringIO
except ImportError:
from io import StringIO

teststr = [
"""
Expand Down
95 changes: 0 additions & 95 deletions fixed2free/fixed2free.py

This file was deleted.

3 changes: 2 additions & 1 deletion fixed2free/fixed2free2.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
# TODO:
# *) Improve command line usage

from __future__ import print_function
import sys

class FortranLine:
Expand Down Expand Up @@ -130,7 +131,7 @@ def convertToFree(stream):
if len(sys.argv) > 1:
infile = open(sys.argv[1], 'r')
for line in convertToFree(infile):
print line,
print(line, end="")

infile.close()
else:
Expand Down

0 comments on commit 765e27a

Please sign in to comment.