Remove unused function _underscore().

feature/documentation-builds-html
Isis Lovecruft 2013-04-10 22:44:10 +00:00
parent 3152784ada
commit f65618bd83
No known key found for this signature in database
GPG Key ID: A3ADB67A2CDB8B35
1 changed files with 0 additions and 19 deletions

View File

@ -649,25 +649,6 @@ def _threaded_copy_data(instream, outstream):
wr.start() wr.start()
return wr return wr
def _underscore(input, remove_prefix=False):
"""
Change hyphens to underscores so that GPG option names can be easily
tranlated to object attributes.
:type input: C{str}
:param input: The input intended for the gnupg process.
:type remove_prefix: C{bool}
:param remove_prefix: If True, strip leading hyphens from the input.
:rtype: C{str}
:return: The :param:input with hyphens changed to underscores.
"""
if not remove_prefix:
return input.replace('-', '_')
else:
return input.lstrip('-').replace('-', '_')
def _which(executable, flags=os.X_OK): def _which(executable, flags=os.X_OK):
"""Borrowed from Twisted's :mod:twisted.python.proutils . """Borrowed from Twisted's :mod:twisted.python.proutils .