Remove IntEnums for compatibility with Python 3.3
authorAntoine Busque <antoinebusque@gmail.com>
Thu, 2 Oct 2014 18:46:43 +0000 (14:46 -0400)
committerAntoine Busque <antoinebusque@gmail.com>
Thu, 2 Oct 2014 18:46:43 +0000 (14:46 -0400)
LTTngAnalyzes/common.py
LTTngAnalyzes/syscalls.py

index de45022f50bb3ed5edc617217301cb7277f4121d..0bbe872fe40d8e83e0b61876f6dd26c7a36311e4 100644 (file)
@@ -3,7 +3,6 @@ import time
 import os
 import socket
 import struct
-from enum import IntEnum
 from socket import AddressFamily
 
 NSEC_PER_SEC = 1000000000
@@ -79,7 +78,7 @@ class Iface():
         self.send_bytes = 0
         self.send_packets = 0
 
-class FDType(IntEnum):
+class FDType():
     unknown = 0
     disk = 1
     net = 2
index 9669f8bdacad4c762cf84bfea819c123623c1316..99c5be427a36a91c87c0d99af7870ce18584766f 100644 (file)
@@ -1,8 +1,6 @@
 from LTTngAnalyzes.common import *
-from enum import IntEnum
 
-#Using IntEnum rather than Enum allows direct serialization
-class IOCategory(IntEnum):
+class IOCategory():
     """Defines an enumeration mapping IO categories to integer values.
     Used mainly to export syscall metadata (to JSON)."""
 
This page took 0.024343 seconds and 5 git commands to generate.