Revision: 755
Author:   keith.dart
Date:     Wed Feb  4 23:38:40 2015 UTC
Log:      Update and bug fix that was introduced by newer python.
https://code.google.com/p/pycopia/source/detail?r=755
Modified:
  /trunk/aid/pycopia/aid.py
  /trunk/aid/pycopia/socket.py
=======================================
--- /trunk/aid/pycopia/aid.py	Mon Mar  4 00:57:08 2013 UTC
+++ /trunk/aid/pycopia/aid.py	Wed Feb  4 23:38:40 2015 UTC
@@ -127,6 +127,8 @@
          return self._name
      def __repr__(self):
          return "{}({:d}, {!r})".format(self.__class__.__name__, self,  
self._name)
+    def for_json(self):
+        return {"_class_": "Enum", "_str_": self._name, "value": int(self)}
  class Enums(list):
      """A list of Enum objects."""
=======================================
--- /trunk/aid/pycopia/socket.py	Wed Jan  9 10:59:18 2013 UTC
+++ /trunk/aid/pycopia/socket.py	Wed Feb  4 23:38:40 2015 UTC
@@ -87,8 +87,6 @@
  class socket(_socket.socket):
      """A subclass of _socket.socket adding the makefile() method."""
-    __slots__ = ["__weakref__", "_io_refs", "_closed"]
-
      def __init__(self, family=AF_INET, type=SOCK_STREAM, proto=0,  
fileno=None):
          _compatsocket(self, family, type, proto, fileno)
          self._io_refs = 0