Skip to content

Commit f6e2a8b

Browse files
absurdfarcedkropachev
authored andcommitted
Fix for rendering of code blocks in CLE documentation (datastax#1159)
1 parent b4ae1f0 commit f6e2a8b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/column_encryption.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ and adding information about columns to be encrypted to it. This policy is then
2121
when it's created.
2222

2323
.. code-block:: python
24+
2425
import os
2526
2627
from cassandra.policies import ColDesc, AES256ColumnEncryptionPolicy, AES256_KEY_SIZE_BYTES
@@ -57,6 +58,7 @@ supplied parameters. For example, we can create a prepared statement to insert
5758
by executing the following code after creating a :class:`~.Cluster` in the manner described above:
5859

5960
.. code-block:: python
61+
6062
session = cluster.connect()
6163
prepared = session.prepare("insert into ks1.table1 (column1) values (?)")
6264
session.execute(prepared, (1000,))
@@ -70,6 +72,7 @@ standard serialization methods employed by the driver. The result is then encry
7072
of the policy. Using this approach the example above could be implemented along the lines of the following:
7173

7274
.. code-block:: python
75+
7376
session = cluster.connect()
7477
session.execute("insert into ks1.table1 (column1) values (%s)",(cl_policy.encode_and_encrypt(col_desc, 1000),))
7578
@@ -88,4 +91,4 @@ of the cryptography package, although wheels exist for many common platforms.
8891

8992
Client-side encryption has been implemented for both the default Cython and pure Python row processing logic.
9093
This functionality has not yet been ported to the NumPy Cython implementation. During testing,
91-
the NumPy processing works on Python 3.7 but fails for Python 3.8.
94+
the NumPy processing works on Python 3.7 but fails for Python 3.8.

0 commit comments

Comments
 (0)