Skip to content

Commit

Permalink
Remove unneded abstraction layer in to_json_serializable
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Dellweg authored and ntkathole committed Mar 20, 2019
1 parent cc9266d commit ab0a4f9
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions nailgun/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
_poll_task,
_get_entity_ids,
_payload,
to_json_serializable as to_json
to_json_serializable,
)

if version_info.major == 2: # pragma: no cover
Expand Down Expand Up @@ -201,18 +201,6 @@ def _get_version(server_config):
return getattr(server_config, 'version', Version('1!0'))


def to_json_serializable(obj):
"""Just an alias to entity_mixins.to_json_seriazable so this module can
be used as a facade
:param obj: entity or any json serializable object
:return: serializable object
"""
return to_json(obj)


class ActivationKey(
Entity,
EntityCreateMixin,
Expand Down

0 comments on commit ab0a4f9

Please sign in to comment.