示例#1
0
# coding=utf-8
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).

from __future__ import (absolute_import, division, generators, nested_scopes,
                        print_function, unicode_literals, with_statement)

import sys

from example.hello.greet.greet import greet

if __name__ == '__main__':
    greetees = sys.argv[1:] or ['world']
    for greetee in greetees:
        print(greet(greetee))
示例#2
0
文件: greet.py 项目: ejconlon/pants
 def test_greeting_mentions_addressee(self):
     """Fancy formatting should not omit the person we're greeting"""
     assert ('foo' in greet('foo'))
示例#3
0
 def test_greeting_mentions_addressee(self):
   """Fancy formatting should not omit the person we're greeting"""
   assert('foo' in greet('foo'))
示例#4
0
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).

from __future__ import (nested_scopes, generators, division, absolute_import,
                        with_statement, print_function, unicode_literals)

from example.hello.greet.greet import greet

if __name__ == '__main__':
    print(greet('world'))
示例#5
0
文件: main.py 项目: aoen/pants
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).

from __future__ import (nested_scopes, generators, division, absolute_import, with_statement,
                        print_function, unicode_literals)

from example.hello.greet.greet import greet

if __name__ == '__main__':
  print(greet('world'))
示例#6
0
文件: main.py 项目: CaitieM20/pants
# coding=utf-8
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).

from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
                        unicode_literals, with_statement)

import sys

from example.hello.greet.greet import greet


if __name__ == '__main__':
  greetees = sys.argv[1:] or ['world']
  for greetee in greetees:
    print(greet(greetee))