mirror of
https://github.com/clearml/clearml-agent
synced 2025-01-31 09:06:52 +00:00
Fix Python 3.13 support
This commit is contained in:
parent
f110bbf5b4
commit
91dfa09466
@ -134,7 +134,7 @@ class BaseField(object):
|
|||||||
def _validate_name(self):
|
def _validate_name(self):
|
||||||
if self.name is None:
|
if self.name is None:
|
||||||
return
|
return
|
||||||
if not re.match('^[A-Za-z_](([\w\-]*)?\w+)?$', self.name):
|
if not re.match(r'^[A-Za-z_](([\w\-]*)?\w+)?$', self.name):
|
||||||
raise ValueError('Wrong name', self.name)
|
raise ValueError('Wrong name', self.name)
|
||||||
|
|
||||||
def structue_name(self, default):
|
def structue_name(self, default):
|
||||||
|
Loading…
Reference in New Issue
Block a user