~ubuntu-branches/ubuntu/oneiric/lightning-extension/oneiric-security

« back to all changes in this revision

Viewing changes to mozilla/xpcom/idl-parser/xpidl.py

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2012-04-20 13:46:11 UTC
  • mfrom: (1.2.1)
  • mto: (1.3.1)
  • mto: This revision was merged to the branch mainline in revision 19.
  • Revision ID: package-import@ubuntu.com-20120420134611-i0dkosnbmihrd0lr
Tags: upstream-1.4+build1
ImportĀ upstreamĀ versionĀ 1.4+build1

Show diffs side-by-side

added added

removed removed

Lines of Context:
532
532
            self.doccomments = parent.getName(self.name, None).doccomments
533
533
 
534
534
        parent.setName(self)
535
 
        if self.base is None:
536
 
            if self.name != 'nsISupports':
537
 
                print >>sys.stderr, IDLError("interface '%s' not derived from nsISupports" % self.name,
538
 
                                             self.location, warning=True)
539
 
        else:
 
535
        if self.base is not None:
540
536
            realbase = parent.getName(self.base, self.location)
541
537
            if realbase.kind != 'interface':
542
538
                raise IDLError("interface '%s' inherits from non-interface type '%s'" % (self.name, self.base), self.location)