From 9b809621fb4930b3f7df9ddf065d1a4b1f7a64bd Mon Sep 17 00:00:00 2001 From: Nidal Al Hariri Date: Sun, 11 Nov 2012 02:20:40 +0400 Subject: [PATCH] Update twython/twython.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes TypeError: %d format: a number is required, not str --- twython/twython.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twython/twython.py b/twython/twython.py index 5bf25fb..ea3ca04 100644 --- a/twython/twython.py +++ b/twython/twython.py @@ -448,7 +448,7 @@ class Twython(object): return self._media_update(url, {'image': (file_, open(file_, 'rb'))}) - def updateStatusWithMedia(self, file_, version='1.1', **params): + def updateStatusWithMedia(self, file_, version=1.1, **params): """Updates the users status with media :param file_: (required) A string to the location of the file