~ubuntu-branches/debian/squeeze/protobuf/squeeze

« back to all changes in this revision

Viewing changes to examples/list_people.py

  • Committer: Bazaar Package Importer
  • Author(s): Julien Cristau
  • Date: 2009-06-02 16:19:00 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090602161900-vm176i3ryt35yk91
Tags: 2.0.3-2.2
* Non-maintainer upload.
* Fix FTBFS from -2.1: don't fail when we can't clean up the java build,
  such as when openjdk isn't installed.
* Disable parallel builds, because libtool is made of fail (if binary-arch
  and build-indep run concurrently, we relink a library while it's being
  used; that doesn't work so well).

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
    for phone_number in person.phone:
17
17
      if phone_number.type == addressbook_pb2.Person.MOBILE:
18
 
        print "  Mobile phone #: ",
 
18
        print "  Mobile phone #:",
19
19
      elif phone_number.type == addressbook_pb2.Person.HOME:
20
 
        print "  Home phone #: ",
 
20
        print "  Home phone #:",
21
21
      elif phone_number.type == addressbook_pb2.Person.WORK:
22
 
        print "  Work phone #: ",
 
22
        print "  Work phone #:",
23
23
      print phone_number.number
24
24
 
25
25
# Main procedure:  Reads the entire address book from a file and prints all