Skip to content

Commit

Permalink
Use encode() instead of bytes()
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Feb 6, 2020
1 parent 45e80ce commit 3ef9dd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocdskit/upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def _create_party_id(party):

def _get_bytes(obj, field):
# Handle null and integers.
return bytes(str(obj.get(field) or ''), 'utf-8')
return str(obj.get(field) or '').encode('utf-8')


def upgrade_amendments_10_11(release):
Expand Down

0 comments on commit 3ef9dd5

Please sign in to comment.