diff options
author | Alistair Bush <ali_bush@gentoo.org> | 2009-12-25 22:26:09 +0000 |
---|---|---|
committer | Alistair Bush <ali_bush@gentoo.org> | 2009-12-25 22:26:09 +0000 |
commit | c10549c4b9695eacd19f848ebcb47b375386e741 (patch) | |
tree | 95cc74563b93fa0017de5c4f528ceb79c9749c8c | |
parent | Apply python3 patch 1 from Arfrever (diff) | |
download | java-config-c10549c4b9695eacd19f848ebcb47b375386e741.tar.gz java-config-c10549c4b9695eacd19f848ebcb47b375386e741.tar.bz2 java-config-c10549c4b9695eacd19f848ebcb47b375386e741.zip |
Apply python3 patch 2 from Arfrever
svn path=/projects/java-config-2/trunk/; revision=8037
-rwxr-xr-x | src/gjl | 8 | ||||
-rw-r--r-- | src/java_config_2/OutputFormatter.py | 4 |
2 files changed, 6 insertions, 6 deletions
@@ -266,20 +266,20 @@ if __name__ == '__main__': vm = get_vm(pkg) if vm: manager.set_active_vm(vm) - print 'gjl_vm="%s"' % ( vm ) + print('gjl_vm="%s"' % ( vm )) if options.get_args: args = get_args(pkg) if args: - print 'gjl_args="%s";' % ( args ) + print('gjl_args="%s";' % ( args )) env = get_env(pkg) for k, v in env.iteritems(): - print 'export %s="%s";' % ( k, v ) + print('export %s="%s";' % ( k, v )) if options.jar: jar = get_jar(pkg, options.jar) if jar: - print 'gjl_starte="-jar %s"' % ( jar ) + print('gjl_starte="-jar %s"' % ( jar )) else: abort("Couldn't find %s" % ( options.jar ) ) diff --git a/src/java_config_2/OutputFormatter.py b/src/java_config_2/OutputFormatter.py index 57e267e..f031481 100644 --- a/src/java_config_2/OutputFormatter.py +++ b/src/java_config_2/OutputFormatter.py @@ -99,10 +99,10 @@ class OutputFormatter: return striped def write(self, message): - print self.__parseColor(message.strip()) + print(self.__parseColor(message.strip())) def _print(self, message): - print self.__parseColor(message) + print(self.__parseColor(message)) def _printError(self, message): message = "%H%R" + self.__indent("!!! ERROR: ", message) + "%$" |