mirror of https://github.com/pwndbg/pwndbg.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
406 B
Python
18 lines
406 B
Python
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
"""
|
|
Compatibility functionality, for determining whether we are
|
|
running under Python2 or Python3, and resolving any
|
|
inconsistencies which arise from this.
|
|
"""
|
|
import sys
|
|
|
|
# Quickly determine which version is running
|
|
python2 = sys.version_info.major == 2
|
|
python3 = sys.version_info.major == 3
|
|
|
|
if python3:
|
|
basestring = str
|
|
else:
|
|
basestring = basestring
|