Fixed some typos

This commit is contained in:
Lars Kiesow 2014-05-11 20:24:48 +02:00
parent d6cbfdb81c
commit 1d0d13fdc6
No known key found for this signature in database
GPG key ID: 5DAFE8D9C823CE73
5 changed files with 11 additions and 11 deletions

View file

@ -32,7 +32,7 @@
Note that for the methods which set fields that can occur more than once in
a feed you can use all of the following ways to provide data:
- Provide the data for that element as keyword arguments
- Provide the data for that element as dictionary
- Provide a list of dictionaries with the data for several elements
@ -131,6 +131,6 @@
You can test the module by simply executing::
$ pythom -m feedgen
$ python -m feedgen
"""

View file

@ -20,12 +20,12 @@ def print_enc(s):
if __name__ == '__main__':
if len(sys.argv) != 2 or not (
if len(sys.argv) != 2 or not (
sys.argv[1].endswith('rss') \
or sys.argv[1].endswith('atom') \
or sys.argv[1].endswith('podcast') ):
print_enc ('Usage: %s ( <file>.atom | atom | <file>.rss | rss | podcast )' % \
'pythom -m feedgen')
'python -m feedgen')
print_enc ('')
print_enc (' atom -- Generate ATOM test output and print it to stdout.')
print_enc (' rss -- Generate RSS test output and print it to stdout.')

View file

@ -51,7 +51,7 @@ class DcBaseExtension(BaseExtension):
:returns: The feed root element
'''
DCELEMENTS_NS = 'http://purl.org/dc/elements/1.1/'
feed = atom_feed
for elem in ['contributor', 'coverage', 'creator', 'date', 'description',
@ -151,7 +151,7 @@ class DcBaseExtension(BaseExtension):
def dc_creator(self, creator=None, replace=False):
'''Get or set the dc:creator which is an entity primarily responsible for
making the resource.
making the resource.
For more information see:
http://dublincore.org/documents/dcmi-terms/#elements-creator
@ -419,7 +419,7 @@ class DcEntryExtension(DcBaseExtension):
'''
def extend_atom(self, entry):
'''NYI. Differs from RSS Implementation?
'''
return entry

View file

@ -112,7 +112,7 @@ class PodcastExtension(BaseExtension):
def itunes_block(self, itunes_block=None):
'''Get or set the ITunes block attribute. Use this to prevent the entire
podcast from appearing in the iTunes podcast directory.
podcast from appearing in the iTunes podcast directory.
:param itunes_block: Block the podcast.
:returns: If the podcast is blocked.
@ -286,10 +286,10 @@ class PodcastExtension(BaseExtension):
_itunes_categories = {
'Arts': [ 'Design', 'Fashion & Beauty', 'Food', 'Literature',
'Performing Arts', 'Visual Arts' ],
'Business' : [ 'Business News', 'Careers', 'Investing',
'Business' : [ 'Business News', 'Careers', 'Investing',
'Management & Marketing', 'Shopping' ],
'Comedy' : [],
'Education' : [ 'Education', 'Education Technology',
'Education' : [ 'Education', 'Education Technology',
'Higher Education', 'K-12', 'Language Courses', 'Training' ],
'Games & Hobbies' : [ 'Automotive', 'Aviation', 'Hobbies',
'Other Games', 'Video Games' ],

View file

@ -95,7 +95,7 @@ class PodcastEntryExtension(BaseEntryExtension):
def itunes_block(self, itunes_block=None):
'''Get or set the ITunes block attribute. Use this to prevent episodes
from appearing in the iTunes podcast directory.
from appearing in the iTunes podcast directory.
:param itunes_block: Block podcast episodes.
:returns: If the podcast episode is blocked.