From 97ee9f5184d3bf25a2837224dcf4588daf29d2b9 Mon Sep 17 00:00:00 2001 From: j Date: Wed, 24 Aug 2011 18:58:49 +0200 Subject: [PATCH] debug --- pandora_client/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_client/__init__.py b/pandora_client/__init__.py index 1911dcb..b5de057 100644 --- a/pandora_client/__init__.py +++ b/pandora_client/__init__.py @@ -469,8 +469,8 @@ class API(object): return True def uploadData(self, filename, oshash): - print filename - print os.stat(filename) + if DEBUG: + print 'upload', filename form = ox.MultiPartForm() form.add_field('action', 'upload') form.add_field('id', str(oshash))