From: Andrew Gaffney Date: Sun, 11 Jan 2009 21:59:37 +0000 (-0600) Subject: Remove unused function hexify() X-Git-Tag: CATALYST-2.0.10~3^2~202 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b96d640c226048fe170a0ecadc87b9f0be44799b;p=catalyst.git Remove unused function hexify() --- diff --git a/ChangeLog b/ChangeLog index a695ae6a..415567aa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,10 @@ # Copyright 2002-2009 Gentoo Foundation; 2008-2009 Various authors (see AUTHORS) # Distributed under the GPL v2 + 11 Jan 2009; Andrew Gaffney + modules/catalyst/support.py: + Remove unused function hexify() + 11 Jan 2009; Andrew Gaffney modules/catalyst/support.py, modules/catalyst/target/embedded.py, modules/catalyst/target/generic_stage.py, modules/catalyst/target/grp.py, diff --git a/modules/catalyst/support.py b/modules/catalyst/support.py index 091c0a9c..b584a408 100644 --- a/modules/catalyst/support.py +++ b/modules/catalyst/support.py @@ -54,17 +54,6 @@ def cleanup(pids,block_exceptions=True): -# a function to turn a string of non-printable characters into a string of -# hex characters -def hexify(str): - hexStr = string.hexdigits - r = '' - for ch in str: - i = ord(ch) - r = r + hexStr[(i >> 4) & 0xF] + hexStr[i & 0xF] - return r -# hexify() - def generate_contents(file,contents_function="auto",verbose=False): try: _ = contents_function