forked from platformio/platformio-core
Use builtin "title()"
This commit is contained in:
1 parent
df3a13fc61
commit
9ce0b0e25b
2 files changed
+2
-2
No files matched your search
@@ -26,7 +26,7 @@ class PlatformFactory(object):
|
||||
@staticmethod
|
||||
def get_clsname(name):
|
||||
name = re.sub(r"[^\da-z\_]+", "", name, flags=re.I)
|
||||
return "%s%sPlatform" % (name.upper()[0], name.lower()[1:])
|
||||
return "%sPlatform" % name.lower().title()
|
||||
|
||||
@staticmethod
|
||||
def load_module(name, path):
|
||||
|
||||
Reference in new issue
Block a user