summaryrefslogtreecommitdiff
path: root/doc/source
diff options
context:
space:
mode:
authorsonu.kumar <sonu.kumar@nectechnologies.in>2015-07-20 14:42:04 +0530
committersonu.kumar <sonu.kumar@nectechnologies.in>2015-07-20 15:01:42 +0530
commit866114dbf684f6c02f3eaa6a02ecdc0b8ff3bc38 (patch)
treeedb4dc792317a6e0fcc7690a2dbbecb9d91d30cc /doc/source
parent352d4cbdd0cf24b85d971d83c0ce8083dcb4eb76 (diff)
downloadpython-designateclient-866114dbf684f6c02f3eaa6a02ecdc0b8ff3bc38.tar.gz
Replacing print with print() to provide py 2/3 compatibility
Replaced print in python 2 to print() to provide py 2/3 compatibility Change-Id: I805ecdbdd07ea89c1595c045fc5b380f9bb42335
Diffstat (limited to 'doc/source')
-rw-r--r--doc/source/bindings.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/source/bindings.rst b/doc/source/bindings.rst
index 218e458..e977cb3 100644
--- a/doc/source/bindings.rst
+++ b/doc/source/bindings.rst
@@ -15,7 +15,7 @@ the bindings.
.. code-block:: python
#!/usr/bin/env python
-
+ from __future__ import print_function
from designateclient.v1 import Client
# Create an instance of the client, providing the necessary credentials
@@ -31,7 +31,7 @@ the bindings.
# Iterate the list, printing some useful information
for domain in domains:
- print "Domain ID: %s, Name: %s" % (domain.id, domain.name)
+ print("Domain ID: %s, Name: %s" % (domain.id, domain.name))
And the output this program might produce: