consistent i18n placeholders (flake8 H701, H702, H703)

- eliminates ambiguously defined keywords in i18n strings which may
  become incorrectly ordered in a corresponding translation.
- ensures formatting operations occur outside of i18n calls
- use bare multiline string concatenation instead of 'ab' + \n 'cd'
- eliminates an 'empty localization string' (passing a variable to i18n
  function)

Change-Id: I0d78b978cc730e5fb892b80dfacaaf6687cd80be
This commit is contained in:
Dolph Mathews
2013-05-23 14:33:55 -05:00
committed by Gerrit Code Review
parent 67175a6673
commit f9b535c84e
10 changed files with 70 additions and 50 deletions

View File

@@ -217,10 +217,6 @@ def hash_signed_token(signed_text):
def setup_remote_pydev_debug():
if CONF.pydev_debug_host and CONF.pydev_debug_port:
error_msg = ('Error setting up the debug environment. Verify that the'
' option --debug-url has the format <host>:<port> and '
'that a debugger processes is listening on that port.')
try:
try:
from pydevd import pydevd
@@ -233,7 +229,10 @@ def setup_remote_pydev_debug():
stderrToServer=True)
return True
except:
LOG.exception(_(error_msg))
LOG.exception(_(
'Error setting up the debug environment. Verify that the '
'option --debug-url has the format <host>:<port> and that a '
'debugger processes is listening on that port.'))
raise