# Copyright 2002-2009 Gentoo Foundation; 2008-2009 Various authors (see AUTHORS)
# Distributed under the GPL v2
+ 11 Jan 2009; Andrew Gaffney <agaffney@gentoo.org>
+ modules/catalyst/support.py:
+ Remove unused function hexify()
+
11 Jan 2009; Andrew Gaffney <agaffney@gentoo.org>
modules/catalyst/support.py, modules/catalyst/target/embedded.py,
modules/catalyst/target/generic_stage.py, modules/catalyst/target/grp.py,
-# 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