From 8917d2e6073fb015e5d206be9f8c0db7ed88d743 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Sun, 9 Jun 2013 18:58:03 +0200 Subject: [PATCH] strip, not trim --- octoprint/util/comm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/octoprint/util/comm.py b/octoprint/util/comm.py index 0db16f9..fbb8676 100644 --- a/octoprint/util/comm.py +++ b/octoprint/util/comm.py @@ -593,7 +593,7 @@ class MachineCom(object): ##~~ SD file list # if we are currently receiving an sd file list, each line is just a filename, so just read it and abort processing if self._sdFileList and not 'End file list' in line: - self._sdFiles.append(line.trim().lower()) + self._sdFiles.append(line.strip().lower()) continue ##~~ Temperature processing