From 8e3cbcfebcba84216d086e9a8d1aa8ce7dcbbe15 Mon Sep 17 00:00:00 2001 From: Stavros Sachtouris Date: Mon, 20 Jan 2014 15:59:59 +0200 Subject: [PATCH] Remove "None" from end of file cat responses --- kamaki/cli/commands/pithos.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kamaki/cli/commands/pithos.py b/kamaki/cli/commands/pithos.py index 408f80e..be929e0 100644 --- a/kamaki/cli/commands/pithos.py +++ b/kamaki/cli/commands/pithos.py @@ -1059,7 +1059,7 @@ class file_cat(_pithos_container): @errors.pithos.container @errors.pithos.object_path def _run(self): - r = self.client.download_object( + self.client.download_object( self.path, self._out, range_str=self['range'], version=self['object_version'], @@ -1067,7 +1067,7 @@ class file_cat(_pithos_container): if_none_match=self['if_none_match'], if_modified_since=self['if_modified_since'], if_unmodified_since=self['if_unmodified_since']) - print r + self._out.flush() def main(self, path_or_url): super(self.__class__, self)._run(path_or_url) -- 1.7.10.4