Skip to content

Commit

Permalink
Change stdout.write to stdout.buffer.write
Browse files Browse the repository at this point in the history
  • Loading branch information
shokada committed Oct 11, 2019
1 parent 09fa5c5 commit afcb9e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion promgen/management/commands/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ def handle(self, **kwargs):
# Since we're already working with utf8 encoded data, we can skip
# the newline ending here
self.stdout.ending = None
self.stdout.write(prometheus.render_rules())
self.stdout.buffer.write(prometheus.render_rules())

0 comments on commit afcb9e5

Please sign in to comment.