From d276e3dcdf81877a14b507a8092cacc94d532e1a Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Mon, 19 Mar 2018 12:00:13 +0200 Subject: Fix README formatting --- README.rst | 6 +++--- 1 file 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() -- cgit v1.3.1