bpo-27200: Fix doctests in programming.rst and datetime.rst (#401)

diff --git a/Doc/faq/programming.rst b/Doc/faq/programming.rst
index 9c5e20d..d9bdb21 100644
--- a/Doc/faq/programming.rst
+++ b/Doc/faq/programming.rst
@@ -1849,7 +1849,7 @@
 will continue to work with the old version of the imported objects.  If the
 module contains class definitions, existing class instances will *not* be
 updated to use the new class definition.  This can result in the following
-paradoxical behaviour:
+paradoxical behaviour::
 
    >>> import importlib
    >>> import cls
@@ -1860,7 +1860,7 @@
    False
 
 The nature of the problem is made clear if you print out the "identity" of the
-class objects:
+class objects::
 
    >>> hex(id(c.__class__))
    '0x7352a0'