From 11d54b6fbe4177f358e3b8974aa62702efd1375a Mon Sep 17 00:00:00 2001 From: Andrew Gaffney Date: Sat, 15 Oct 2005 16:52:52 +0000 Subject: fix indentation issues git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/gli/trunk@962 f8877401-5920-0410-a79b-8e2d7e04ca0d --- src/GLIUtility.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/GLIUtility.py') diff --git a/src/GLIUtility.py b/src/GLIUtility.py index 0456350..cf10ec8 100644 --- a/src/GLIUtility.py +++ b/src/GLIUtility.py @@ -76,7 +76,7 @@ def format_mac(mac): # trim_ip('192.168.01.002') => '192.168.1.2' # @param ip IP address to be trimmed def trim_ip(ip): - # Remove leading zero's on the first octet + # Remove leading zero's on the first octet ip = re.sub('^0{1,2}','',ip) # Remove leading zero's from the other octets @@ -567,7 +567,7 @@ def get_value_from_config(filename, value): # @param password the password to be hashed def hash_password(password): salt = "$1$" - chars = "./abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" + chars = "./abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" for i in range(0, 8): salt += chars[random.randint(0, len(chars)-1)] salt += "$" -- cgit v1.2.3-65-gdbad