From: Mark Tearle Date: Mon, 6 Apr 2015 08:44:22 +0000 (+0800) Subject: Remove dot twiddling on display X-Git-Url: https://git.ucc.asn.au/?p=uccvend-vendserver.git;a=commitdiff_plain;h=4fa885832355d6e46f959c013cb8e1b729a96786;ds=sidebyside Remove dot twiddling on display --- diff --git a/VendServer/VendingMachine.py b/VendServer/VendingMachine.py index e5a0251..4f4b674 100644 --- 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)