From b96d640c226048fe170a0ecadc87b9f0be44799b Mon Sep 17 00:00:00 2001 From: Andrew Gaffney Date: Sun, 11 Jan 2009 15:59:37 -0600 Subject: [PATCH] Remove unused function hexify() --- ChangeLog | 4 ++++ modules/catalyst/support.py | 11 ----------- 2 files changed, 4 insertions(+), 11 deletions(-) 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 -- 2.26.2