def _on_property_usage(prop_name, stacklevel):
 stacklevel += 1
 deprecated_to_new_props = {'slavename': 'workername'}
 if (prop_name in deprecated_to_new_props):
  reportDeprecatedWorkerNameUsage("Property '{old_name}' is deprecated, use '{new_name}' instead.".format(old_name=prop_name, new_name=deprecated_to_new_props[prop_name]), stacklevel=stacklevel)

def _on_property_usage ( prop_name , stacklevel ) : stacklevel += 1 deprecated_to_new_props = { 'slavename' : 'workername' } if ( prop_name in deprecated_to_new_props ) : reportDeprecatedWorkerNameUsage ( "Property '{old_name}' is deprecated, use '{new_name}' instead." . format ( old_name = prop_name , new_name = deprecated_to_new_props [ prop_name ] ) , stacklevel = stacklevel )
handle deprecated properties after worker-name transition .