Commits

teythoon  committed 1454059

convert all classes to new-style classes

  • Participants
  • Parent commits 4ef4c7f

Comments (0)

Files changed (13)

 Jakub Wilk <jwilk AT debian.org> - fix for GNU/kFreeBSD
 Mark Seaborn <mrs AT mythic-beasts.com> - Create -i option for strace
 Mickaël Guérin aka KAeL <mickael.guerin AT crocobox.org> - OpenBSD port
+teythoon - convert all classes to new-style classes
 T. Bursztyka aka Tuna <tuna AT lyua.org> - x86_64 port
 Victor Stinner <victor.stinner AT haypocalc.com> - python-ptrace author and maintainer
 
 python-ptrace 0.6.4
 -------------------
 
+ * Convert all classes to new-style classes, patch written by teythoon
  * Fix compilation on Apple, patch written by Anthony Gelibert
  * Support GNU/kFreeBSD, patch written by Jakub Wilk
  * Support sockaddr_in6 (IPv6 address)

File ptrace/debugger/backtrace.py

 from ptrace.cpu_info import CPU_WORD_SIZE, CPU_MAX_UINT
 from ptrace import PtraceError
 
-class BacktraceFrame:
+class BacktraceFrame(object):
     """
     Backtrace frame.
 
         arguments = (formatWordHex(arg) for arg in self.arguments)
         return u"IP=%s: %s (%s)" % (formatAddress(self.ip), self.name, ", ".join(arguments))
 
-class Backtrace:
+class Backtrace(object):
     """
     Backtrace: all process frames since the start function.
     """

File ptrace/debugger/breakpoint.py

 from ptrace.ctypes_tools import word2bytes
 from ptrace.six import b
 
-class Breakpoint:
+class Breakpoint(object):
     """
     Software breakpoint.
 

File ptrace/debugger/debugger.py

 class DebuggerError(PtraceError):
     pass
 
-class PtraceDebugger:
+class PtraceDebugger(object):
     """
     Debugger managing one or multiple processes at the same time.
 

File ptrace/debugger/memory_mapping.py

     # Filename: '  /usr/bin/synergyc'
     r'(?: +(.*))?')
 
-class MemoryMapping:
+class MemoryMapping(object):
     """
     Process memory mapping (metadata about the mapping).
 

File ptrace/debugger/process.py

 DEFAULT_NB_INSTR = 10
 DEFAULT_CODE_SIZE = 24
 
-class PtraceProcess:
+class PtraceProcess(object):
     """
     Process traced by a PtraceDebugger.
 

File ptrace/debugger/syscall_state.py

 from ptrace.syscall import PtraceSyscall
 from signal import SIGTRAP
 
-class SyscallState:
+class SyscallState(object):
     def __init__(self, process):
         self.process = process
         self.ignore_exec_trap = True

File ptrace/disasm.py

             raise ImportError("CPU not supported")
     from ptrace import PtraceError
 
-    class Instruction:
+    class Instruction(object):
         """
         A CPU instruction.
 

File ptrace/func_arg.py

 from logging import getLogger
 from ptrace.ctypes_tools import formatAddress
 
-class FunctionArgument:
+class FunctionArgument(object):
     """
     Description of a function argument. Attributes:
      - function: a Function objet

File ptrace/func_call.py

 from ptrace.func_arg import FunctionArgument
 
-class FunctionCallOptions:
+class FunctionCallOptions(object):
     """
     Options to format a function call and its arguments.
     """
         self.max_array_count = max_array_count
         self.instr_pointer = False
 
-class FunctionCall:
+class FunctionCall(object):
     """
     A function call. Attributes:
      - name (str): function name

File ptrace/linux_proc.py

     except IOError, err:
         raise ProcError("Process %s doesn't exist: %s" % (pid, err))
 
-class ProcessState:
+class ProcessState(object):
     """
     Processus state. Attributes:
     - state (str): process status ('R', 'S', 'T', ...)

File ptrace/mockup.py

 Mockup classes used in unit tests.
 """
 
-class FakeProcess:
+class FakeProcess(object):
     def __init__(self):
         self.regs = {}