From ed1e683b69463c57f62d5050cb711dde49408ba4 Mon Sep 17 00:00:00 2001 From: Nils Wentzell Date: Fri, 3 Apr 2020 16:20:26 -0400 Subject: [PATCH] Port py files to python3 --- doc/conf.py.in | 4 ++-- python/app4triqs/__init__.py | 2 +- python/app4triqs/version.py.in | 4 ++-- share/replace_and_rename.py | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/conf.py.in b/doc/conf.py.in index 01fd4bc2..f870967c 100644 --- a/doc/conf.py.in +++ b/doc/conf.py.in @@ -19,8 +19,8 @@ extensions = ['sphinx.ext.autodoc', source_suffix = '.rst' -project = u'APP4TRIQS - An example triqs application' -copyright = u'2017-2018 N. Wentzell, O. Parcollet 2018-2019 The Simons Foundation, authors: N. Wentzell, D. Simons, H. Strand, O. Parcollet' +project = 'APP4TRIQS - An example triqs application' +copyright = '2017-2018 N. Wentzell, O. Parcollet 2018-2019 The Simons Foundation, authors: N. Wentzell, D. Simons, H. Strand, O. Parcollet' version = '@PROJECT_VERSION@' mathjax_path = "@TRIQS_MATHJAX_PATH@/MathJax.js?config=default" diff --git a/python/app4triqs/__init__.py b/python/app4triqs/__init__.py index 2fabf532..1d6bdf56 100644 --- a/python/app4triqs/__init__.py +++ b/python/app4triqs/__init__.py @@ -25,6 +25,6 @@ r""" DOC """ -from app4triqs_module import Toto, chain +from .app4triqs_module import Toto, chain __all__ = ['Toto', 'chain'] diff --git a/python/app4triqs/version.py.in b/python/app4triqs/version.py.in index f26b5708..e7540120 100644 --- a/python/app4triqs/version.py.in +++ b/python/app4triqs/version.py.in @@ -26,7 +26,7 @@ triqs_hash = "@TRIQS_GIT_HASH@" app4triqs_hash = "@PROJECT_GIT_HASH@" def show_version(): - print "\nYou are using app4triqs version %s\n"%version + print("\nYou are using app4triqs version %s\n"%version) def show_git_hash(): - print "\nYou are using app4triqs git hash %s based on triqs git hash %s\n"%(app4triqs_hash, triqs_hash) + print("\nYou are using app4triqs git hash %s based on triqs git hash %s\n"%(app4triqs_hash, triqs_hash)) diff --git a/share/replace_and_rename.py b/share/replace_and_rename.py index 0ab2990a..b183fb40 100755 --- a/share/replace_and_rename.py +++ b/share/replace_and_rename.py @@ -5,7 +5,7 @@ import os import glob if len(sys.argv) != 2: - print "Please pass the application name" + print("Please pass the application name") sys.exit() app_name = str(sys.argv[1]).lower()