Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions source/examples/python/hello/greeter.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env python

import time


def greeting():
'''Returns a pleasant, semi-useful greeting.'''
return "Hello world, the time is: " + time.ctime()

11 changes: 1 addition & 10 deletions source/examples/python/hello/hello.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
#!/usr/bin/env python
#
# Copyright (c) 2013 Jason McVetta. This is Free Software, released under the
# terms of the GPL v3. See http://www.gnu.org/copyleft/gpl.html for details.
# Resist intellectual serfdom - the ownership of ideas is akin to slavery.

import time


def greeting():
'''Returns a pleasant, semi-useful greeting.'''
return "Hello world, the time is: " + time.ctime()
from greeter import greeting


def main():
Expand All @@ -18,4 +10,3 @@ def main():

if __name__ == '__main__':
main()