Skip to content

Commit

Permalink
make bottle py3 example load index page correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Sridhar Ratnakumar committed Jul 15, 2011
1 parent eec9758 commit fc1ca88
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/bottle-py3/app.py
Expand Up @@ -2,10 +2,10 @@
import sys
from bottle import route, run

@route('/hello/:name')
def index(name='World'):
@route('/')
def index():
pyver = '.'.join(map(str, tuple(sys.version_info)[:3]))
return 'Hello %s! (from <b>Python %s</b>)' % (name, pyver)
return 'Hello World! (from <b>Python %s</b>)' % (name, pyver)


if __name__ == '__main__':
Expand Down

0 comments on commit fc1ca88

Please sign in to comment.