mirror of https://github.com/scrapy/scrapy.git
minor fix to doctest
--HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40839
This commit is contained in:
parent
90c1597cef
commit
d376b20996
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in New Issue