Skip to content

Commit

Permalink
Fixed python 3 issues with utils.
Browse files Browse the repository at this point in the history
  • Loading branch information
ej2 committed Sep 18, 2015
1 parent 45649af commit 10dacbe
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions quickbooks/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ def __init__(self, message, error_code=0, detail=""):

self.error_code = error_code
self.detail = detail
self.message = message


class AuthorizationException(QuickbooksException):
Expand Down
2 changes: 0 additions & 2 deletions quickbooks/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ class ReadMixin(object):

@classmethod
def get(cls, id):
from client import QuickBooks
qb = QuickBooks()

json_data = qb.get_single_object(cls.qbo_object_name, pk=id)
Expand All @@ -58,7 +57,6 @@ class UpdateMixin(object):
qbo_object_name = ""

def save(self):
from .client import QuickBooks
qb = QuickBooks()

if self.Id > 0:
Expand Down
2 changes: 1 addition & 1 deletion quickbooks/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def build_where_clause(**kwargs):
if len(kwargs) > 0:
where = []

for key, value in kwargs.iteritems():
for key, value in kwargs.items():
if isinstance(value, six.string_types):
where.append("{0} = '{1}'".format(key, value.replace("'", "\'")))
else:
Expand Down

0 comments on commit 10dacbe

Please sign in to comment.