From 71629a7936fc3bde941e351c24209563065afeda Mon Sep 17 00:00:00 2001 From: Tonsofattraction Date: Mon, 15 Jun 2015 16:35:57 +0300 Subject: [PATCH] stupid indents... --- yandextank/stepper/util.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/yandextank/stepper/util.py b/yandextank/stepper/util.py index 2267f81..e11a2fc 100644 --- a/yandextank/stepper/util.py +++ b/yandextank/stepper/util.py @@ -162,9 +162,9 @@ class HttpOpener(object): hasher.update(self.hash) tmpfile_path = "/tmp/%s" % hasher.hexdigest() if os.path.exists(tmpfile_path): - logging.info("Ammofile has already been downloaded to %s . Using it..", tmpfile_path) - else: - logging.info("Downloading ammofile to %s", tmpfile_path) + logging.info("Ammofile has already been downloaded to %s . Using it..", tmpfile_path) + else: + logging.info("Downloading ammofile to %s", tmpfile_path) data = requests.get(self.url) f = open(tmpfile_path, "wb") f.write(data.content) @@ -258,8 +258,8 @@ class HttpStreamWrapper(): if not self._content_consumed or self.buffer: try: line = self.buffer[:self.buffer.index('\n')+1] - except ValueError: - line = self.buffer + except ValueError: + line = self.buffer self.pointer += len(line) self.buffer = self.buffer[len(line):] return line