Skip to content

Commit

Permalink
more familliar repr ids
Browse files Browse the repository at this point in the history
  • Loading branch information
pjenvey committed Nov 28, 2008
1 parent e68d03c commit e20a6da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions webob/__init__.py
Expand Up @@ -1261,7 +1261,7 @@ def _cache_control__del(self, value):
user_agent = environ_getter('HTTP_USER_AGENT', rfc_section='14.43')

def __repr__(self):
msg = '<%s at %x %s %s>' % (
msg = '<%s at 0x%x %s %s>' % (
self.__class__.__name__,
abs(id(self)), self.method, self.url)
return msg
Expand Down Expand Up @@ -1497,7 +1497,7 @@ def __init__(self, body=None, status='200 OK', headerlist=None, app_iter=None,
setattr(self, name, value)

def __repr__(self):
return '<%s %x %s>' % (
return '<%s at 0x%x %s>' % (
self.__class__.__name__,
abs(id(self)),
self.status)
Expand Down Expand Up @@ -2297,7 +2297,7 @@ def __repr__(self):
inner = repr(self.vars)
if len(inner) > 20:
inner = inner[:15] + '...' + inner[-5:]
return '<%s at %x viewing %s>' % (
return '<%s at 0x%x viewing %s>' % (
self.__class__.__name__,
abs(id(self)), inner)

Expand Down
2 changes: 1 addition & 1 deletion webob/acceptparse.py
Expand Up @@ -55,7 +55,7 @@ def __init__(self, header_name, header_value):
self._parsed = parse_accept(header_value)

def __repr__(self):
return '<%s at %x %s: %s>' % (
return '<%s at 0x%x %s: %s>' % (
self.__class__.__name__,
abs(id(self)),
self.header_name, str(self))
Expand Down

0 comments on commit e20a6da

Please sign in to comment.