misc: remove unused random_string function

This commit is contained in:
Username
2025-12-20 16:45:59 +01:00
parent a62c46600c
commit 67eb5413e4

View File

@@ -1,15 +1,10 @@
#!/usr/bin/env python
import time, random, string, sys
import time, sys
""" return formatted timestamp """
def timestamp():
"""Return formatted timestamp."""
return time.strftime('%H:%M:%S', time.gmtime())
""" return some random string """
def random_string(strlen=20):
return ''.join([random.choice(string.letters) for x in xrange(strlen)])
def _log(strng, level='info'):
print '\r%s/%s\t%s' % (timestamp(), level, strng)