Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed issue #10. Fixed a semantic error when calling post_async. #11

Merged
merged 2 commits into from
Jan 25, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions firebase/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
from .async import process_pool
from firebase import *

__version__ = '1.1'
VERSION = tuple(map(int, __version__.split('.')))

@atexit.register
def close_process_pool():
Expand Down
2 changes: 1 addition & 1 deletion firebase/firebase.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def post_async(self, url, data, callback=None, params=None, headers=None):
params = params or {}
headers = headers or {}
endpoint = self._build_endpoint_url(url, None)
params, headers = self._authenticate(params, headers)
self._authenticate(params, headers)
data = json.dumps(data, cls=JSONEncoder)
process_pool.apply_async(make_post_request,
args=(endpoint, data, params, headers),
Expand Down
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@
except ImportError:
from distutils.core import setup

from firebase import __version__

with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
long_description = readme.read()


setup(name='python-firebase',
version=__version__,
version='1.1',
description="Python interface to the Firebase's REST API.",
long_description=long_description,
classifiers=[
Expand Down