summaryrefslogtreecommitdiff
path: root/docs/narr/commandline.rst
diff options
context:
space:
mode:
authorPhilip Jenvey <pjenvey@underboss.org>2013-08-15 15:57:14 -0700
committerPhilip Jenvey <pjenvey@underboss.org>2013-08-15 15:57:14 -0700
commitedfc4f80a1240f6f5f0c41e53078a8f5d305075f (patch)
tree4059af6880d0f7f50b68b7407b0381262eb4ace7 /docs/narr/commandline.rst
parentcc574a90d183f8f5a74360cec1658028da584c15 (diff)
downloadpyramid-edfc4f80a1240f6f5f0c41e53078a8f5d305075f.tar.gz
pyramid-edfc4f80a1240f6f5f0c41e53078a8f5d305075f.tar.bz2
pyramid-edfc4f80a1240f6f5f0c41e53078a8f5d305075f.zip
prefer the functionish print
Diffstat (limited to 'docs/narr/commandline.rst')
-rw-r--r--docs/narr/commandline.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/narr/commandline.rst b/docs/narr/commandline.rst
index 17e5227fa..58b9bdd21 100644
--- a/docs/narr/commandline.rst
+++ b/docs/narr/commandline.rst
@@ -538,7 +538,7 @@ representing Pyramid your application configuration as a single argument:
from pyramid.paster import bootstrap
env = bootstrap('/path/to/my/development.ini')
- print env['request'].route_url('home')
+ print(env['request'].route_url('home'))
:func:`pyramid.paster.bootstrap` returns a dictionary containing
framework-related information. This dictionary will always contain a
@@ -606,7 +606,7 @@ to load instead of ``main``:
from pyramid.paster import bootstrap
env = bootstrap('/path/to/my/development.ini#another')
- print env['request'].route_url('home')
+ print(env['request'].route_url('home'))
The above example specifies the ``another`` ``app``, ``pipeline``, or
``composite`` section of your PasteDeploy configuration file. The ``app``
@@ -643,7 +643,7 @@ the desired request and passing it into :func:`~pyramid.paster.bootstrap`:
request = Request.blank('/', base_url='https://example.com/prefix')
env = bootstrap('/path/to/my/development.ini#another', request=request)
- print env['request'].application_url
+ print(env['request'].application_url)
# will print 'https://example.com/prefix'
Now you can readily use Pyramid's APIs for generating URLs: