dbfdg 3 Ö¸VXsã@s4ddlmZGdd„dedƒƒZGdd„deƒZdS)é)ÚExitableWithAliasesc@seZdZfZdd„ZdS)Ú NameOwnercsvd|r dndB|rdndB}ˆjjˆ|ƒ}|dkrJ|j‡‡fdd„ƒdS|dkrZtdƒ‚|dkrjtd ƒ‚td ƒ‚dS) Néréécs ˆjjˆƒS)N)ÚdbusZ ReleaseName©)ÚbusÚnamerú"/usr/lib/python3.6/request_name.pyÚ sz$NameOwner.__init__..ézname already exists on the busz%you're already the owner of this namez!cannot take ownership of the name)rZ RequestNameZ_at_exitÚ RuntimeError)Úselfr r Úallow_replacementÚreplaceÚflagsÚresr)r r r Ú__init__szNameOwner.__init__N)Ú__name__Ú __module__Ú __qualname__Ú __slots__rrrrr rsrZunownc@seZdZfZddd„ZdS)ÚRequestNameMixinTFcCst||||ƒS)z~Aquires a bus name. Returns ------- NameOwner An object you can use as a context manager to unown the name later. )r)rr rrrrr Ú request_nameszRequestNameMixin.request_nameN)TF)rrrrrrrrr rsrN)ZexitablerrÚobjectrrrrr Ús