~ellisonbg/ipython/trunk-dev

« back to all changes in this revision

Viewing changes to IPython/utils/coloransi.py

  • Committer: Brian Granger
  • Date: 2010-01-31 23:57:46 UTC
  • mfrom: (1109.1.113 ipython)
  • Revision ID: ellisonbg@gmail.com-20100131235746-rj81qa8klooepq2m
Merging from upstream trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
import os
15
15
 
16
 
from IPython.ipstruct import Struct
 
16
from IPython.utils.ipstruct import Struct
17
17
 
18
18
def make_color_table(in_class):
19
19
    """Build a set of color attributes in a class.
111
111
        """Return a full copy of the object, optionally renaming it."""
112
112
        if name is None:
113
113
            name = self.name
114
 
        return ColorScheme(name,self.colors.__dict__)
 
114
        return ColorScheme(name, self.colors.dict())
115
115
        
116
116
class ColorSchemeTable(dict):
117
117
    """General class to handle tables of color schemes.