daily pastebin goal
61%
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class ClientVerifier(type):
  2.     '''отсутствие вызовов connect для сокетов'''
  3.  
  4.     def __new__(cls, clsname, bases, clsdict):
  5.         for method in clsdict:
  6.             if callable(clsdict.get(method)):
  7.                 for instr in dis.get_instructions(clsdict.get(method)):
  8.                     if instr.argval in INVALID_CALLS:
  9.                         raise ClientVerifierError
  10.         return type.__new__(cls, clsname, bases, clsdict)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top