Permalink
Browse files

Fix load_module error so python 3.3 works. Simplify login api path. V…

…ersion bump.
  • Loading branch information...
1 parent 7a7d8ce commit 1086a64357ddc82cf24812f86d4aa709a352553c @bboe bboe committed Nov 1, 2012
Showing with 5 additions and 3 deletions.
  1. +3 −3 praw/__init__.py
  2. +1 −0 praw/compat.py
  3. +1 −0 setup.py
View
@@ -27,7 +27,7 @@
urljoin)
from praw.settings import CONFIG
-__version__ = '1.0.13'
+__version__ = '1.0.14'
UA_STRING = '%%s PRAW/%s Python/%s %s' % (__version__,
sys.version.split()[0],
platform.platform(True))
@@ -56,7 +56,7 @@ class Config(object): # pylint: disable-msg=R0903
'help': 'help/',
'inbox': 'message/inbox/',
'info': 'button_info/',
- 'login': 'api/login/%s/',
+ 'login': 'api/login/',
'moderator': 'message/moderator/',
'moderators': 'r/%s/about/moderators/',
'modqueue': 'r/%s/about/modqueue/',
@@ -706,7 +706,7 @@ def login(self, username=None, password=None):
params = {'passwd': pswd,
'user': user}
- response = self.request_json(self.config['login'] % user, params)
+ response = self.request_json(self.config['login'], params)
self.modhash = response['data']['modhash']
self.user = self.get_redditor(user)
self.user.__class__ = objects.LoggedInRedditor
View
@@ -35,6 +35,7 @@ def load_module(cls, fullname):
try:
package = __import__('six.moves', fromlist=[module])
mod = getattr(package, module)
+ sys.modules[fullname] = mod
return mod
except ImportError:
raise ImportError('No module named {0}'.format(fullname))
View
@@ -34,6 +34,7 @@
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.2',
+ 'Programming Language :: Python :: 3.3',
'Topic :: Utilities'],
license='GPLv3',
keywords='reddit api wrapper',

0 comments on commit 1086a64

Please sign in to comment.