Ticket #5779: t5779-builtins.diff

File t5779-builtins.diff, 575 bytes (added by Alex, 2 years ago)
  • twisted/conch/ssh/common.py

     
    99Maintainer: Paul Swartz 
    1010""" 
    1111 
    12 import struct, warnings 
     12import struct, warnings, __builtin__ 
    1313 
    1414try: 
    1515    from Crypto import Util 
     
    107107        if type(x) in (long, int): 
    108108            x = mpz(x) 
    109109        return pyPow(x, y, z) 
    110     __builtins__['pow'] = _fastpow # evil evil 
     110    __builtin__.pow = _fastpow # evil evil 
    111111 
    112112try: 
    113113    import gmpy