Skip to content

Commit

Permalink
Update README.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
andamian authored Mar 13, 2018
1 parent d675c20 commit b2c0b4a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions caom2/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ To create a minimal Simple Observation
--------------------------------------

.. code:: python
# make it compatible with Python 2 and 3
from __future__ import (absolute_import, division, print_function,
unicode_literals)
Expand Down Expand Up @@ -47,6 +48,8 @@ To create a minimal Simple Observation
writer = ObservationWriter()
writer.write(observation, sys.stdout)
The output:

.. code:: xml
<?xml version='1.0' encoding='UTF-8'?>
Expand Down Expand Up @@ -82,6 +85,7 @@ To create a complete Observation
--------------------------------------

.. code:: python
# make it compatible with Python 2 and 3
from __future__ import (absolute_import, division, print_function,
unicode_literals)
Expand Down Expand Up @@ -224,6 +228,8 @@ To create a complete Observation
writer = ObservationWriter()
writer.write(observation, sys.stdout)
The output:

.. code:: xml
<?xml version='1.0' encoding='UTF-8'?>
Expand Down

0 comments on commit b2c0b4a

Please sign in to comment.