summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2018-03-19 12:00:13 +0200
committerYuval Adam <_@yuv.al>2018-03-19 12:00:13 +0200
commitd276e3dcdf81877a14b507a8092cacc94d532e1a (patch)
tree07ed09149107a53f6d6de70f7bff90f8bc5f5d14
parentba0b06637bcec3a01d8e6a11884fbad1a0f5d612 (diff)
Fix README formatting
-rw-r--r--README.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.rst b/README.rst
index cb07b58..9dcebb0 100644
--- a/README.rst
+++ b/README.rst
@@ -20,7 +20,7 @@ The Viewstate decoder accepts Base64 encoded .NET viewstate data and returns the
There are two main ways to use this package. First, it can be used as an imported library with the following typical use case:
-.. code-block:: pycon
+.. code-block:: python
>>> from viewstate import ViewState
>>> base64_encoded_viewstate = '/wEPBQVhYmNkZQ9nAgE='
@@ -30,7 +30,7 @@ There are two main ways to use this package. First, it can be used as an importe
It is also possible to feed the raw bytes directly:
-.. code-block:: pycon
+.. code-block:: python
>>> vs = ViewState(raw=b'\xff\x01....')
@@ -44,7 +44,7 @@ Which will pretty-print the decoded data structure.
Viewstate HMAC signatures are also supported. In case there are any remaining bytes after parsing, they are assumed to be HMAC signatures, with the types estimated according to signature length.
-.. code-block:: pycon
+.. code-block:: python
>>> vs = ViewState(signed_view_state)
>>> vs.decode()