http://mf34jlghauz5pxjcmdymdqbe5pva4v24logeys446tdrgd5lpsrocmqd.onion/_modules/stem/util/tor_tools.html
:param str entry: string to be checked :param int count: number of hex digits to be checked for :returns: **True** if the given number of hex digits, **False** otherwise " " " try : if len ( entry ) != count : return False int ( entry , 16 ) # attempt to convert it as hex return True except ( ValueError , TypeError ): return False