Skip to content

Commit

Permalink
Remove property hack that was only required for Python < 2.6.
Browse files Browse the repository at this point in the history
  • Loading branch information
florianpilz committed Sep 29, 2016
1 parent 0921085 commit 6860d54
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/zope/testbrowser/cookies.py
Expand Up @@ -54,13 +54,6 @@ def expiration_string(expires): # this is not protected so usable in tests.
expires = expires.strftime('%a, %d %b %Y %H:%M:%S GMT')
return expires

if getattr(property, 'setter', None) is None:
# hack on Python 2.6 spelling of the only part we use here
class property(property):
__slots__ = ()
def setter(self, f):
return property(self.fget, f, self.fdel, self.__doc__)

# end Cookies class helpers


Expand Down

0 comments on commit 6860d54

Please sign in to comment.