New hybrid method

This commit is contained in:
angelblue05 2018-09-06 03:36:32 -05:00
parent 7f5084c62e
commit ace50b34dc
279 changed files with 39526 additions and 19994 deletions

View file

@ -0,0 +1,7 @@
def has_attribute(obj, name):
try:
object.__getattribute__(obj, name)
return True
except AttributeError:
return False

View file

@ -0,0 +1,15 @@
# -*- coding: utf-8 -*-
#################################################################################################
import logging
from uuid import uuid4
#################################################################################################
LOG = logging.getLogger('Emby.'+__name__)
#################################################################################################
def generate_client_id():
return str("%012X" % uuid4())