MCPcopy Index your code
hub / github.com/secdev/scapy / isPyPy

Function isPyPy

scapy/config.py:794–801  ·  view source on GitHub ↗

Returns either scapy is running under PyPy or not

()

Source from the content-addressed store, hash-verified

792
793
794def isPyPy():
795 # type: () -> bool
796 """Returns either scapy is running under PyPy or not"""
797 try:
798 import __pypy__ # noqa: F401
799 return True
800 except ImportError:
801 return False
802
803
804def _prompt_changer(attr, val, old):

Callers 1

ConfClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected