From 844c1ae23514594eb37dd6f2dfe9cc2842c4cf38 Mon Sep 17 00:00:00 2001 From: Ryan McGrath Date: Wed, 10 Feb 2010 18:51:58 -0500 Subject: [PATCH] Removing redundant code block --- twython/core.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/twython/core.py b/twython/core.py index a49610e..9b0209e 100644 --- a/twython/core.py +++ b/twython/core.py @@ -459,10 +459,7 @@ class setup: apiURL = "http://api.twitter.com/%d/users/show.json?screen_name=%s" % (version, screen_name) if apiURL != "": try: - if self.authenticated is True: - return simplejson.load(self.opener.open(apiURL)) - else: - return simplejson.load(self.opener.open(apiURL)) + return simplejson.load(self.opener.open(apiURL)) except HTTPError, e: raise TwythonError("showUser() failed with a %s error code." % `e.code`, e.code)