aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2013-12-13 20:22:14 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2013-12-13 20:22:14 -0800
commit989061d070bdee122b07633e9a19e737fa816256 (patch)
tree2929fbeb90403322a014125def9e9ee10378d5ec /docs
parentb9dd85c661f405099a88b7a76aefde5f59a6b985 (diff)
downloadcryptography-989061d070bdee122b07633e9a19e737fa816256.tar.gz
cryptography-989061d070bdee122b07633e9a19e737fa816256.tar.bz2
cryptography-989061d070bdee122b07633e9a19e737fa816256.zip
Prefer executable code examples
Diffstat (limited to 'docs')
-rw-r--r--docs/hazmat/primitives/symmetric-encryption.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/hazmat/primitives/symmetric-encryption.rst b/docs/hazmat/primitives/symmetric-encryption.rst
index ef6f0871..f3def845 100644
--- a/docs/hazmat/primitives/symmetric-encryption.rst
+++ b/docs/hazmat/primitives/symmetric-encryption.rst
@@ -266,7 +266,7 @@ Modes
A good construction looks like:
- .. code-block:: pycon
+ .. doctest::
>>> import os
>>> iv = os.urandom(16)
@@ -274,7 +274,7 @@ Modes
While the following is bad and will leak information:
- .. code-block:: pycon
+ .. doctest::
>>> iv = "a" * 16
>>> mode = CBC(iv)