X-Git-Url: https://git.ucc.asn.au/?p=uccvend-vendserver.git;a=blobdiff_plain;f=VendServer%2FVendingMachine.py;h=4f4b674df4440919adbd64041b1e8015831a5f0d;hp=e5a0251f0210b1f66f28e4b26b144dff2f68fc10;hb=4fa885832355d6e46f959c013cb8e1b729a96786;hpb=db55f34efc5c9d66c9608176c4b66162ee9e7318;ds=sidebyside 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)