git.ucc.asn.au
/
uccvend-vendserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Remove dot twiddling on display
[uccvend-vendserver.git]
/
VendServer
/
VendingMachine.py
diff --git
a/VendServer/VendingMachine.py
b/VendServer/VendingMachine.py
index
e5a0251
..
4f4b674
100644
(file)
--- a/
VendServer/VendingMachine.py
+++ b/
VendServer/VendingMachine.py
@@
-162,7
+162,6
@@
class VendingMachine:
def display(self, string):
if len(string) > 10:
string = string[0:10]
- string = re.sub('(.)\.', lambda match: '.'+match.group(1), string)
self.wfh.write('D'+string+'\n')
(code, string) = self.get_response()
return (code == '300', code, string)
UCC
git Repository :: git.ucc.asn.au