minor fix to doctest

--HG--
extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40839
This commit is contained in:
Pablo Hoffman 2009-02-10 04:46:07 +00:00
parent 90c1597cef
commit d376b20996
1 changed files with 2 additions and 2 deletions

View File

@ -160,10 +160,10 @@ def string_camelcase(string):
""" Convert a word to its CamelCase version and remove invalid chars
>>> string_camelcase('lost-pound')
LostPound
'LostPound'
>>> string_camelcase('missing_images')
MissingImages
'MissingImages'
"""
return CAMELCASE_INVALID_CHARS.sub('', string.title())