Convert from "print ..." to "print(...)"
[hooke.git] / test / command_stack_save_load.py
index e9a0e010b9e3044664592f25998f90f9685efe35..591d00fac2b35ecc6ec4af8760cc805eb00bf5f7 100644 (file)
@@ -1,20 +1,19 @@
-# Copyright (C) 2010-2011 W. Trevor King <wking@drexel.edu>
+# Copyright (C) 2010-2012 W. Trevor King <wking@tremily.us>
 #
 # This file is part of Hooke.
 #
-# Hooke is free software: you can redistribute it and/or modify it
-# under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 3 of the
-# License, or (at your option) any later version.
+# Hooke is free software: you can redistribute it and/or modify it under the
+# terms of the GNU Lesser General Public License as published by the Free
+# Software Foundation, either version 3 of the License, or (at your option) any
+# later version.
 #
-# Hooke is distributed in the hope that it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
-# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General
-# Public License for more details.
+# Hooke is distributed in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+# A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
+# details.
 #
-# You should have received a copy of the GNU Lesser General Public
-# License along with Hooke.  If not, see
-# <http://www.gnu.org/licenses/>.
+# You should have received a copy of the GNU Lesser General Public License
+# along with Hooke.  If not, see <http://www.gnu.org/licenses/>.
 
 """
 We run this test in a temporary directory for easy cleanup.
@@ -76,7 +75,7 @@ Success
 >>> os.listdir(target_dir)
 ['default']
 >>> with open(os.path.join(target_dir, 'default'), 'r') as f:
-...     print f.read()
+...     print(f.read())
 - arguments: {input: test/data/test}
   command: load playlist
 - arguments: {}
@@ -91,7 +90,7 @@ Success
 >>> sorted(os.listdir(target_dir))
 ['default', 'my_stack']
 >>> with open(os.path.join(target_dir, 'my_stack'), 'r') as f:
-...     print f.read()
+...     print(f.read())
 - arguments: {input: test/data/test}
   command: load playlist
 - arguments: {}
@@ -113,14 +112,14 @@ Success
 Success
 <BLANKLINE>
 >>> with open(os.path.join(target_dir, 'default'), 'r') as f:
-...     print f.read()
+...     print(f.read())
 - arguments: {input: test/data/test}
   command: load playlist
 - arguments: {}
   command: get curve
 <BLANKLINE>
 >>> with open(os.path.join(target_dir, 'my_stack'), 'r') as f:
-...     print f.read()
+...     print(f.read())
 - arguments: {input: test/data/test}
   command: load playlist
 - arguments: {}
@@ -145,7 +144,7 @@ Success
 Success
 <BLANKLINE>
 >>> with open(os.path.join(target_dir, 'default'), 'r') as f:
-...     print f.read()
+...     print(f.read())
 - arguments: {}
   command: version
 <BLANKLINE>