~ubuntu-branches/ubuntu/quantal/python-django/quantal-security

« back to all changes in this revision

Viewing changes to django/contrib/gis/geos/collections.py

  • Committer: Bazaar Package Importer
  • Author(s): Chris Lamb
  • Date: 2010-05-21 07:52:55 UTC
  • mfrom: (1.3.6 upstream)
  • mto: This revision was merged to the branch mainline in revision 28.
  • Revision ID: james.westby@ubuntu.com-20100521075255-ii78v1dyfmyu3uzx
Tags: upstream-1.2
ImportĀ upstreamĀ versionĀ 1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
        # Checking the arguments
21
21
        if not args:
22
 
            raise TypeError, 'Must provide at least one Geometry to initialize %s.' % self.__class__.__name__
 
22
            raise TypeError('Must provide at least one Geometry to initialize %s.' % self.__class__.__name__)
23
23
 
24
24
        if len(args) == 1:
25
25
            # If only one geometry provided or a list of geometries is provided