Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
1583d402
Kaydet (Commit)
1583d402
authored
May 05, 2012
tarafından
Alex Gaynor
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed the syntax used for the Python repl examples in docs and docstrings.
üst
208e26b3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
locks.py
django/core/files/locks.py
+2
-2
feedgenerator.py
django/utils/feedgenerator.py
+1
-1
utils.txt
docs/ref/utils.txt
+1
-1
testing.txt
docs/topics/testing.txt
+1
-1
No files found.
django/core/files/locks.py
Dosyayı görüntüle @
1583d402
...
...
@@ -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'
)
...
...
django/utils/feedgenerator.py
Dosyayı görüntüle @
1583d402
...
...
@@ -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
...
...
docs/ref/utils.txt
Dosyayı görüntüle @
1583d402
...
...
@@ -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``
...
...
docs/topics/testing.txt
Dosyayı görüntüle @
1583d402
...
...
@@ -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.)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment