Mercurial > p > roundup > code
diff test/test_security.py @ 5376:64b05e24dbd8
Python 3 preparation: convert print to a function.
Tool-assisted patch. It is possible that some "from __future__ import
print_function" are not in fact needed, if a file only uses print()
with a single string as an argument and so would work fine in Python 2
without that import.
| author | Joseph Myers <jsm@polyomino.org.uk> |
|---|---|
| date | Tue, 24 Jul 2018 09:54:52 +0000 |
| parents | c94fd717e28c |
| children | d26921b851c3 |
line wrap: on
line diff
--- a/test/test_security.py Sat Jul 21 23:07:16 2018 +1000 +++ b/test/test_security.py Tue Jul 24 09:54:52 2018 +0000 @@ -18,6 +18,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. +from __future__ import print_function import os, unittest, shutil from roundup import backends @@ -219,7 +220,7 @@ check=check_old_style, properties=['a', 'b'])) user7 = self.db.user.create(username='user7', roles='Role7') - print user7 + print(user7) # *any* access to class self.assertEquals(has('Test', user1, 'test'), 1)
