Permalink
Browse files

Fix format string for python 2.6

  • Loading branch information...
1 parent d0bde82 commit b08363fbad22a5eba08e25135fe9c3429ce5c752 @bboe bboe committed Jun 18, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 reddit/__init__.py
  2. +1 −1 reddit/decorators.py
  3. +1 −1 reddit/objects.py
View
@@ -30,7 +30,7 @@
import reddit.objects
from reddit.settings import CONFIG
-__version__ = '1.3.10'
+__version__ = '1.3.11'
UA_STRING = '%%s PRAW/%s Python/%s %s' % (__version__,
sys.version.split()[0],
platform.platform(True))
@@ -168,7 +168,7 @@ def error_checked_function(self, *args, **kwargs):
warnings.warn_explicit('Unknown return key: %s' % key,
UserWarning, '', 0)
if 'errors' in return_value and return_value['errors']:
- # Hack for now with sucessful submission and captcha error
+ # Hack for now with successful submission and captcha error
if 'data' in return_value and 'url' in return_value['data']:
return return_value
error_list = []
View
@@ -484,7 +484,7 @@ def __init__(self, reddit_session, json_dict):
def __unicode__(self):
title = self.title.replace('\r\n', ' ')
- return six.text_type('{} :: {}').format(self.score, title)
+ return six.text_type('{0} :: {1}').format(self.score, title)
def _insert_comment(self, comment):
if comment.name in self._comments_by_id: # Skip existing comments

0 comments on commit b08363f

Please sign in to comment.