X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=transports%2Fnative.py;h=2cc43131e42a9a81199c8d4a5debf74e0497a90e;hb=09f0e2f27acc188f8786a1340f1374539c59dfd3;hp=2ed7ff92db091ff537b2b2b68e8aff343ff8a04e;hpb=9ffe305089150cc8b236c801d6b5c15d4f98e764;p=electrum-server.git diff --git a/transports/native.py b/transports/native.py index 2ed7ff9..2cc4313 100644 --- a/transports/native.py +++ b/transports/native.py @@ -1,13 +1,8 @@ import thread, threading, time, socket, traceback, ast, sys +from processor import timestr, random_string -def random_string(N): - import random, string - return ''.join(random.choice(string.ascii_uppercase + string.digits) for x in range(N)) - -def timestr(): - return time.strftime("[%d/%m/%Y-%H:%M:%S]") def new_to_old(s):