~cjwatson/storm/zope-interface-class-decorators

« back to all changes in this revision

Viewing changes to storm/store.py

  • Committer: Colin Watson
  • Date: 2019-06-06 08:56:25 UTC
  • mfrom: (498.1.1 py3-print)
  • Revision ID: cjwatson@canonical.com-20190606085625-xtdk9jycqbu7std8
Use Python 3-style print functions. [r=simpoir]

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
This module contains the highest-level ORM interface in Storm.
25
25
"""
26
26
 
 
27
from __future__ import print_function
 
28
 
27
29
from copy import copy
28
30
from weakref import WeakValueDictionary
29
31
from operator import itemgetter
237
239
        required. An example follows::
238
240
 
239
241
            join = LeftJoin(Person, Person.id == Company.person_id)
240
 
            print list(store.using(Company, join).find((Company, Person)))
 
242
            print(list(store.using(Company, join).find((Company, Person))))
241
243
 
242
244
        The previous code snippet will produce an SQL statement
243
245
        somewhat similar to this, depending on your backend::