Cleanup platform name before initialization

This commit is contained in:
Ivan Kravets
2016-09-15 01:17:16 +03:00
parent bd30de4f18
commit 18153d4168

View File

@ -132,6 +132,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:])
@staticmethod