Convert underscore method to proper camelcase

This commit is contained in:
Ruud committed 2014-05-29 19:43:33 +02:00
1 parent 7ceb8dc79c
commit 6691c8ddd7
2 files changed
+12 -5

No files matched your search

+6
View File
@@ -307,3 +307,9 @@ def scanForPassword(name):
if m:
return m.group(1).strip('. '), m.group(2).strip()
under_pat = re.compile(r'_([a-z])')
def underscoreToCamel(name):
return under_pat.sub(lambda x: x.group(1).upper(), name)