From 15051499c4b75637eccdbb65965be2619a650433 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Fri, 11 Mar 2016 19:00:00 +0100 Subject: [PATCH] Use Python 2.6 compatible string.format calls (3) --- glances/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/glances/main.py b/glances/main.py index 2f7a6c45..a8234295 100644 --- a/glances/main.py +++ b/glances/main.py @@ -273,17 +273,17 @@ Start the client browser (browser mode):\n\ # Interactive or file password if args.server: args.password = self.__get_password( - description='Define the Glances server password ({} username): '.format(args.username), + description='Define the Glances server password ({0} username): '.format(args.username), confirm=True, username=args.username) elif args.webserver: args.password = self.__get_password( - description='Define the Glances webserver password ({} username): '.format(args.username), + description='Define the Glances webserver password ({0} username): '.format(args.username), confirm=True, username=args.username) elif args.client: args.password = self.__get_password( - description='Enter the Glances server password({} username): '.format(args.username), + description='Enter the Glances server password ({0} username): '.format(args.username), clear=True, username=args.username) else: