Skip to content
This repository has been archived by the owner on Aug 5, 2023. It is now read-only.

Commit

Permalink
Debug to_lineprotocol return value
Browse files Browse the repository at this point in the history
  • Loading branch information
gusutabopb committed Jun 22, 2019
1 parent b9e85ad commit 89bae37
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions aioinflux/serialization/usertype.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,14 @@ def _parser_selector(i):
cls.to_lineprotocol.opts = opts
return cls


if cls:
if rm_none:
# Using rm_none has substantial runtime impact.
# Best avoided if performance is critical.
return _rm_none_lineprotocol(cls)
# No options
return _lineprotocol(cls)
elif rm_none:
# Using rm_none has substantial runtime impact.
# Best avoided if performance is critical.
return _rm_none_lineprotocol
else:
if rm_none:
return _rm_none_lineprotocol
return _lineprotocol

0 comments on commit 89bae37

Please sign in to comment.