Browse Source

remove format strings

main
Holger Frey 7 years ago
parent
commit
abdfe2dbf1
  1. 14
      honeypot/__init__.py

14
honeypot/__init__.py

@ -19,7 +19,7 @@ class RootResource:
def _dict_helper(dict_like): def _dict_helper(dict_like):
return [f' {k}: {v}' for k, v in dict_like.items()] return [' %s: %s' % (k, v) for k, v in dict_like.items()]
@view_config(context=RootResource) @view_config(context=RootResource)
@ -29,13 +29,13 @@ def the_view(context, request):
'Someone Wanted Some Sweet Honey', 'Someone Wanted Some Sweet Honey',
'-------------------------------', '-------------------------------',
'', '',
f'requested url: {request.url}', 'requested url: %s' % request.url,
f'request method: {request.method}', 'request method: %s' % request.method,
f'client ip address: {request.client_addr}', 'client ip address: %s' % request.client_addr,
f'remote ip address: {request.remote_addr}', 'remote ip address: %s' % request.remote_addr,
'', '',
f'request.authorization: {request.authorization}', 'request.authorization: %s' % request.authorization,
f'request.remote_user: {request.remote_user}', 'request.remote_user: %s' % request.remote_user,
'', '',
'headers:' 'headers:'
] ]

Loading…
Cancel
Save