comparison README.txt @ 24:d0b8c9edf4f5 0.1.0a

Fixed error in README
author Ben Croston <ben@croston.org>
date Sun, 01 Jan 2012 15:57:20 +0000
parents 9459d63c1558
children 346114023528
comparison
equal deleted inserted replaced
23:8c4357842947 24:d0b8c9edf4f5
10 from wsgiref import simple_server 10 from wsgiref import simple_server
11 from AuthRPC.server import AuthRPCApp 11 from AuthRPC.server import AuthRPCApp
12 12
13 def myauth(username, password, useragent): 13 def myauth(username, password, useragent):
14 return username == 'myuser' and \ 14 return username == 'myuser' and \
15 password == hashlib.md5('secret').hexdigest() and \ 15 password == hashlib.md5('secret'.encode()).hexdigest() and \
16 useragent == 'myprogram' 16 useragent == 'myprogram'
17 17
18 class api(object): 18 class api(object):
19 def do_something(self, myvar): 19 def do_something(self, myvar):
20 """Your code placed here""" 20 """Your code placed here"""