File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1111
1212log = logging .getLogger (__name__ )
1313
14- tag_validator re .compile ("(?P<tag>^\s*#?[PYLQGRJCUV0289]+\s*$)|(?P<location>\d{1,10})" )
14+ tag_validator = re .compile ("(?P<tag>^\s*#?[PYLQGRJCUV0289]+\s*$)|(?P<location>\d{1,10})" )
1515tag_names = {'location' , 'tag' }
1616
17+
1718def validate_tag (string ):
1819 # Legal clan tags only have these characters:
1920 # Numbers: 0, 2, 8, 9
@@ -33,7 +34,7 @@ def validate_tag(string):
3334def find_key (args , kwargs ):
3435 if args :
3536 if find (validate_tag , args ):
36- return key
37+ return args
3738
3839 for v in kwargs .values ():
3940 if validate_tag (v ):
@@ -220,6 +221,3 @@ def wrapper(*args, **kwargs):
220221 return func (* args , ** kwargs )
221222 return wrapper
222223 return deco
223-
224-
225-
You can’t perform that action at this time.
0 commit comments