Permalink
Browse files

Merge pull request #31 from jaredmiwilliams/master

fixing a bug, removing reference to _verbose, change to _raw
  • Loading branch information...
2 parents 33fd521 + 3b0ac76 commit c65bb0741dd1f7ad9130c023965e8f716db96b6e Jared Williams committed Apr 30, 2012
Showing with 5 additions and 5 deletions.
  1. +1 −1 hapi/base.py
  2. +2 −2 hapi/test/test_base.py
  3. +2 −2 setup.py
View
@@ -136,7 +136,7 @@ def _call_raw(self, subpath, params=None, method='GET', data=None, doseq=False,
try_count += 1
connection = opts['connection_type'](opts['api_base'], **kwargs)
request_info = self._create_request(connection, method, url, headers, data)
- result = self._execute_request_verbose(connection, request_info)
+ result = self._execute_request_raw(connection, request_info)
break
except HapiError, e:
if try_count > num_retries:
View
@@ -58,7 +58,7 @@ def execute_request_with_retries(a, b):
raise HapiError(defaultdict(str), defaultdict(str))
else:
return TestResult(body='SUCCESS')
- client._execute_request_verbose = execute_request_with_retries
+ client._execute_request_raw = execute_request_with_retries
# This should fail once, and then succeed
result = client._call(*args, **kwargs)
@@ -71,7 +71,7 @@ def execute_request_failed(a, b):
raise HapiError(defaultdict(str), defaultdict(str))
# This should fail and retry and still fail
- client._execute_request_verbose = execute_request_failed
+ client._execute_request_raw = execute_request_failed
raised_error = False
try:
client._call(*args, **kwargs)
View
@@ -3,13 +3,13 @@
setup(
name='hapipy',
- version='2.7.8',
+ version='2.7.9',
description="A python wrapper around HubSpot's APIs",
long_description = open('README.md').read(),
author='HubSpot Dev Team',
author_email='devteam+hapi@hubspot.com',
url='https://github.com/HubSpot/hapipy',
- download_url='https://github.com/HubSpot/hapipy/tarball/v2.7.8',
+ download_url='https://github.com/HubSpot/hapipy/tarball/v2.7.9',
license='LICENSE.txt',
packages=['hapi', 'hapi.mixins'],
install_requires=[

0 comments on commit c65bb07

Please sign in to comment.