Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bareos/python-bareos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'bin/bconsole-json.py')
-rwxr-xr-xbin/bconsole-json.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/bconsole-json.py b/bin/bconsole-json.py
index 337412e..3cca0f2 100755
--- a/bin/bconsole-json.py
+++ b/bin/bconsole-json.py
@@ -1,5 +1,6 @@
#!/usr/bin/python
+from __future__ import print_function
import argparse
import bareos.bsock
import logging
@@ -38,7 +39,7 @@ if __name__ == '__main__':
parameter['password']=password
director = bareos.bsock.BSockJson(**parameter)
except RuntimeError as e:
- print str(e)
+ print(str(e))
sys.exit(1)
logger.debug( "authentication successful" )
director.interactive()