~ubuntu-branches/ubuntu/trusty/python-enable/trusty

« back to all changes in this revision

Viewing changes to enthought/enable/component.py

  • Committer: Bazaar Package Importer
  • Author(s): Varun Hiremath
  • Date: 2010-10-17 23:10:41 UTC
  • mto: (1.2.1 upstream) (8.1.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: james.westby@ubuntu.com-20101017231041-rziowhgl7zhxra2i
Tags: upstream-3.3.2
ImportĀ upstreamĀ versionĀ 3.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1153
1153
        else:
1154
1154
            # assume padding is some sort of array type
1155
1155
            if len(val) != 4:
1156
 
                raise RuntimeError, "Padding must be a 4-element sequence type or an int.  Instead, got" + str(val)
 
1156
                raise RuntimeError("Padding must be a 4-element sequence "
 
1157
                                   "type or an int.  Instead, got" + str(val))
1157
1158
            self.padding_left = val[0]
1158
1159
            self.padding_right = val[1]
1159
1160
            self.padding_top = val[2]