[Git][NTPsec/ntpsec][master] Restored comment describing stream wrappers
Ian Bruene
gitlab at mg.gitlab.com
Thu Sep 28 15:38:43 UTC 2017
Ian Bruene pushed to branch master at NTPsec / ntpsec
Commits:
691b80a2 by Ian Bruene at 2017-09-28T10:37:49-05:00
Restored comment describing stream wrappers
- - - - -
1 changed file:
- ntpclients/ntpq
Changes:
=====================================
ntpclients/ntpq
=====================================
--- a/ntpclients/ntpq
+++ b/ntpclients/ntpq
@@ -52,6 +52,15 @@ version = ntp.util.stdversion()
# also, the make_wrapper function constructs a text stream that can
# wrap a file opened in binary mode for cases where a file object
# that can be passed around from function to function is needed
+#
+# - Construct custom stdin, stdout, and stderr streams when running
+# on Python 3 that force latin-1 encoding, and wrap them around the
+# underlying binary buffers (in Python 2, the streams are binary
+# and are used unchanged); this ensures that the same transformation
+# is done on data from/to the standard streams, as is done on binary
+# data from/to files and subprocesses; the make_std_wrapper function
+# does this. This is only done if the stream encoding is ascii, which
+# is true on Mac OS X.
master_encoding = 'latin-1'
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/691b80a2c9ddc21854c39ee70b2280be62a40bb2
---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/691b80a2c9ddc21854c39ee70b2280be62a40bb2
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170928/67943d3f/attachment.html>
More information about the vc
mailing list