summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2012-05-05 09:54:30 -0500
committerAlex Gaynor <alex.gaynor@gmail.com>2012-05-05 09:54:30 -0500
commit1583d402240d88ad2a4acc024d348a21657ccaba (patch)
tree53fe882999f38a026c2f8724aeba4ef963e00a34
parent208e26b39c95ab7569780a7962b25dd4749d9a18 (diff)
Fixed the syntax used for the Python repl examples in docs and docstrings.
-rw-r--r--django/core/files/locks.py4
-rw-r--r--django/utils/feedgenerator.py2
-rw-r--r--docs/ref/utils.txt2
-rw-r--r--docs/topics/testing.txt2
4 files changed, 5 insertions, 5 deletions
diff --git a/django/core/files/locks.py b/django/core/files/locks.py
index e6fec4d78a..d1384329dc 100644
--- a/django/core/files/locks.py
+++ b/django/core/files/locks.py
@@ -10,8 +10,8 @@ Example Usage::
>>> from django.core.files import locks
>>> with open('./file', 'wb') as f:
- >>> locks.lock(f, locks.LOCK_EX)
- >>> f.write('Django')
+ ... locks.lock(f, locks.LOCK_EX)
+ ... f.write('Django')
"""
__all__ = ('LOCK_EX','LOCK_SH','LOCK_NB','lock','unlock')
diff --git a/django/utils/feedgenerator.py b/django/utils/feedgenerator.py
index f4c7318f10..7fa385ebc3 100644
--- a/django/utils/feedgenerator.py
+++ b/django/utils/feedgenerator.py
@@ -16,7 +16,7 @@ Sample usage:
... description="Testing."
... )
>>> with open('test.rss', 'w') as fp:
->>> feed.write(fp, 'utf-8')
+... feed.write(fp, 'utf-8')
For definitions of the different versions of RSS, see:
http://diveintomark.org/archives/2004/02/04/incompatible-rss
diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt
index f045f4bf5a..b323f0629f 100644
--- a/docs/ref/utils.txt
+++ b/docs/ref/utils.txt
@@ -240,7 +240,7 @@ Sample usage::
... description="Testing."
... )
>>> with open('test.rss', 'w') as fp:
- >>> feed.write(fp, 'utf-8')
+ ... feed.write(fp, 'utf-8')
For simplifying the selection of a generator use ``feedgenerator.DefaultFeed``
which is currently ``Rss201rev2Feed``
diff --git a/docs/topics/testing.txt b/docs/topics/testing.txt
index 3971958dc7..d5ccc2d8fc 100644
--- a/docs/topics/testing.txt
+++ b/docs/topics/testing.txt
@@ -771,7 +771,7 @@ arguments at time of construction:
>>> c = Client()
>>> with open('wishlist.doc') as fp:
- >>> c.post('/customers/wishes/', {'name': 'fred', 'attachment': fp})
+ ... c.post('/customers/wishes/', {'name': 'fred', 'attachment': fp})
(The name ``attachment`` here is not relevant; use whatever name your
file-processing code expects.)