diff options
author | Sviatoslav Sydorenko <wk@sydorenko.org.ua> | 2016-09-16 21:20:51 +0300 |
---|---|---|
committer | Sviatoslav Sydorenko <wk@sydorenko.org.ua> | 2016-09-16 21:20:51 +0300 |
commit | ba195929880397baa09f1dfba8b112deb64e2b92 (patch) | |
tree | 9ed19b07f2f1076df63772debffac2d04a24e4da /cherrypy/test/test_misc_tools.py | |
parent | a6fa519371c505d8961d739584aef5f4b39f3e37 (diff) | |
download | cherrypy-git-ba195929880397baa09f1dfba8b112deb64e2b92.tar.gz |
Drop Python<2.6 compatibility crutches
- float('inf')
- cookies delimiter
- @tools.accept()
- super(Exception, self)
Diffstat (limited to 'cherrypy/test/test_misc_tools.py')
-rw-r--r-- | cherrypy/test/test_misc_tools.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cherrypy/test/test_misc_tools.py b/cherrypy/test/test_misc_tools.py index ad776000..c980e4d8 100644 --- a/cherrypy/test/test_misc_tools.py +++ b/cherrypy/test/test_misc_tools.py @@ -37,10 +37,8 @@ def setup_server(): def index(self): return '<a href="feed">Atom feed</a>' - # In Python 2.4+, we could use a decorator instead: - # @tools.accept('application/atom+xml') @cherrypy.expose - @cherrypy.config(**{'tools.accept.media': 'application/atom+xml'}) + @tools.accept(media='application/atom+xml') def feed(self): return """<?xml version="1.0" encoding="utf-8"?> <feed xmlns="http://www.w3.org/2005/Atom"> |