Convert underscore method to proper camelcase
This commit is contained in:
1 parent
7ceb8dc79c
commit
6691c8ddd7
2 files changed
+12
-5
No files matched your search
@@ -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)
|
||||
Reference in new issue
Block a user