diff options
author | John Dennis <jdennis@redhat.com> | 2007-11-26 23:11:49 -0500 |
---|---|---|
committer | John Dennis <jdennis@redhat.com> | 2007-11-26 23:11:49 -0500 |
commit | 78b5987101c3d489c8397da05546d72e24aeea4c (patch) | |
tree | 114e96d43170c4f4c2139c44084615f099625b6a /ipa-python/radius_util.py | |
parent | c5a43a01686ae23e5381bc3b3f4c590774b865f8 (diff) | |
download | freeipa-78b5987101c3d489c8397da05546d72e24aeea4c.tar.gz freeipa-78b5987101c3d489c8397da05546d72e24aeea4c.tar.xz freeipa-78b5987101c3d489c8397da05546d72e24aeea4c.zip |
add parse_items(), read_items_file()
move read_pairs_file() to ipautil
Diffstat (limited to 'ipa-python/radius_util.py')
-rw-r--r-- | ipa-python/radius_util.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/ipa-python/radius_util.py b/ipa-python/radius_util.py index e502fecec..96bc0f899 100644 --- a/ipa-python/radius_util.py +++ b/ipa-python/radius_util.py @@ -59,8 +59,6 @@ __all__ = [ 'radius_profile_ldap_attr_to_radius_attr', 'radius_profile_attr_to_ldap_attr', - 'read_pairs_file', - 'get_secret', 'validate_ip_addr', 'validate_secret', @@ -240,19 +238,6 @@ def radius_profile_dn(uid, container, suffix): #------------------------------------------------------------------------------ -comment_re = re.compile('#.*$', re.MULTILINE) -def read_pairs_file(filename): - if filename == '-': - fd = sys.stdin - else: - fd = open(filename) - data = fd.read() - data = comment_re.sub('', data) # kill comments - pairs = ipautil.parse_key_value_pairs(data) - if fd != sys.stdin: fd.close() - return pairs - - def get_ldap_attr_translations(): comment_re = re.compile('#.*$') radius_attr_to_ldap_attr = {} |