diff options
author | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2012-03-09 10:37:49 +0000 |
---|---|---|
committer | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2012-03-09 10:37:49 +0000 |
commit | 61714a5e0d99ba1bc08eeac7f0ead106d72abae3 (patch) | |
tree | bebe896d1e8bbf8a1e9590bcc20e8580461fb408 /pykolab/utils.py | |
parent | 0ae2417b2c4a614fd70c512b1283be37dd0c31dd (diff) | |
download | pykolab-61714a5e0d99ba1bc08eeac7f0ead106d72abae3.tar.gz |
Correct some pylint conventions
Diffstat (limited to 'pykolab/utils.py')
-rw-r--r-- | pykolab/utils.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pykolab/utils.py b/pykolab/utils.py index bd94a02..9198c82 100644 --- a/pykolab/utils.py +++ b/pykolab/utils.py @@ -36,12 +36,12 @@ def ask_question(question, default="", password=False): Usage: pykolab.utils.ask_question("What is the server?", default="localhost") """ if password: - answer = getpass.getpass("%s: " %(question)) + answer = getpass.getpass("%s: " % (question)) else: if default == "": - answer = raw_input("%s: " %(question)) + answer = raw_input("%s: " % (question)) else: - answer = raw_input("%s [%s]: " %(question, default)) + answer = raw_input("%s [%s]: " % (question, default)) if answer == "": return default @@ -71,7 +71,7 @@ def ask_confirmation(question, default="y", all_inclusive_no=True): answer = False while answer == False: - answer = raw_input("%s [%s/%s]: " %(question,default_yes,default_no)) + answer = raw_input("%s [%s/%s]: " % (question,default_yes,default_no)) # Parse answer and set back to False if not appropriate if all_inclusive_no: if not answer in [ "y", "Y", "yes" ]: @@ -206,7 +206,7 @@ def pop_empty_from_list(_input_list): _output_list.append(item) def standard_root_dn(domain): - return 'dc=%s' %(',dc='.join(domain.split('.'))) + return 'dc=%s' % (',dc='.join(domain.split('.'))) def translate(mystring, locale_name='en_US'): import locale |