Skip to content

Commit 06392c6

Browse files
committed
amend ddedb234
1 parent b49510e commit 06392c6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pywebio/pin.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,6 @@
139139
'pin', 'pin_update', 'pin_wait_change', 'pin_on_change']
140140

141141

142-
143-
144142
def _pin_output(single_input_return, scope, position):
145143
input_kwargs = single_input_kwargs(single_input_return)
146144
spec = _get_output_spec('pin', input=input_kwargs['item_spec'], scope=scope, position=position)
@@ -259,15 +257,15 @@ def __getattr__(self, name):
259257
return self.__getitem__(name)
260258

261259
def __getitem__(self, name):
262-
check_name(name)
260+
check_dom_name_value(name, 'pin `name`')
263261
return get_pin_value(name, self._strict)
264262

265263
def __setattr__(self, name, value):
266264
"""
267265
__setattr__ will be invoked regardless of whether the attribute be found
268266
"""
269267
assert name != 'use_strict', "'use_strict' is a reserve name, can't use as pin widget name"
270-
check_name(name)
268+
check_dom_name_value(name, 'pin `name`')
271269
self.__setitem__(name, value)
272270

273271
def __setitem__(self, name, value):

0 commit comments

Comments
 (0)