summaryrefslogtreecommitdiff
path: root/cherrypy/test/test_misc_tools.py
diff options
context:
space:
mode:
authorSviatoslav Sydorenko <wk@sydorenko.org.ua>2016-09-16 21:20:51 +0300
committerSviatoslav Sydorenko <wk@sydorenko.org.ua>2016-09-16 21:20:51 +0300
commitba195929880397baa09f1dfba8b112deb64e2b92 (patch)
tree9ed19b07f2f1076df63772debffac2d04a24e4da /cherrypy/test/test_misc_tools.py
parenta6fa519371c505d8961d739584aef5f4b39f3e37 (diff)
downloadcherrypy-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.py4
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">