~ubuntu-branches/ubuntu/trusty/python-babel/trusty

« back to all changes in this revision

Viewing changes to babel/messages/tests/data/project/file2.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2013-10-28 10:11:31 UTC
  • mfrom: (4.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20131028101131-zwbmm8sc29iemmlr
Tags: 1.3-2ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - debian/rules: Run the testsuite during builds.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# -*- coding: utf-8 -*-
2
 
# file2.py for tests
3
 
 
4
 
from gettext import ngettext
5
 
 
6
 
def foo():
7
 
    # Note: This will have the TRANSLATOR: tag but shouldn't
8
 
    # be included on the extracted stuff
9
 
    print ngettext('foobar', 'foobars', 1)