From 3cc6c610bdd0b5a630215d691dd50a7fc7e9e017 Mon Sep 17 00:00:00 2001 From: Vincent Driessen Date: Tue, 27 Jul 2010 10:16:08 +0200 Subject: PEP8ify more and removed unused "import re". --- machineout.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/machineout.py b/machineout.py index 4a29c53..9ba75be 100644 --- a/machineout.py +++ b/machineout.py @@ -3,7 +3,6 @@ Formats nose output into format easily parsable by machine. It is intended to be use to integrate nose with your IDE such as Vim. """ -import re import os import traceback from nose.plugins import Plugin @@ -71,12 +70,12 @@ class NoseMachineReadableOutput(Plugin): self.stream.writeln("%s: %s: %s" % (prefix, etype, msg)) if len(lines) > 1: - pad = ' '*(len(etype)+1) + pad = ' ' * (len(etype) + 1) for line in lines[1:]: self.stream.writeln("%s: %s %s" % (prefix, pad, line)) def _format_testfname(self, fname): if fname.startswith(self.basepath): - return fname[len(self.basepath)+1:] + return fname[len(self.basepath) + 1:] return fname -- cgit v1.2.3