/usr/lib/python2.7/dist-packages/chaco/tests/serializable_base.py is in python-chaco 4.4.1-1.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | from traits.api import Bool, HasTraits, Str, Float, Enum, List, Int
from chaco.serializable import Serializable
class Root(HasTraits):
name = Str
x = Float(0.0)
y = Float(0.0)
class Shape(Serializable, Root):
color = Enum("red", "green", "blue")
filled = Bool(True)
tools = List
_pickles = ("tools", "filled", "color", "x")
class Circle(Shape):
radius = Float(10.0)
_pickles = ("radius",)
class Poly(Shape):
numsides = Int(5)
length = Float(5.0)
_pickles = ("numsides", "length")
# EOF
|