commit | 39a8d590ffb7c8adaa641f182ac7571ba30936a9 | [log] [tgz] |
---|---|---|
author | Jean-Paul Calderone <exarkun@twistedmatrix.com> | Mon Apr 13 20:49:50 2015 -0400 |
committer | Jean-Paul Calderone <exarkun@twistedmatrix.com> | Mon Apr 13 20:49:50 2015 -0400 |
tree | 0277d7a2ca2c135f906c36853cc494051186244e | |
parent | 93477426f7931b6b36b3ec01922250b385fe808f [diff] [blame] |
Rename warn_text to something a little more descriptive.
diff --git a/OpenSSL/_util.py b/OpenSSL/_util.py index 9909250..8d59252 100644 --- a/OpenSSL/_util.py +++ b/OpenSSL/_util.py
@@ -99,7 +99,7 @@ text_type.__name__ + " for {0} is no longer accepted, use bytes" ) -def warn_text(label, obj): +def text_to_bytes_and_warn(label, obj): """ If ``obj`` is text, emit a warning that it should be bytes instead and try to convert it to bytes automatically.