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: @@ -19,7 +19,7 @@ class RootResource:
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)
@ -29,13 +29,13 @@ def the_view(context, request): @@ -29,13 +29,13 @@ def the_view(context, request):
'Someone Wanted Some Sweet Honey',
'-------------------------------',
'',
f'requested url: {request.url}',
f'request method: {request.method}',
f'client ip address: {request.client_addr}',
f'remote ip address: {request.remote_addr}',
'requested url: %s' % request.url,
'request method: %s' % request.method,
'client ip address: %s' % request.client_addr,
'remote ip address: %s' % request.remote_addr,
'',
f'request.authorization: {request.authorization}',
f'request.remote_user: {request.remote_user}',
'request.authorization: %s' % request.authorization,
'request.remote_user: %s' % request.remote_user,
'',
'headers:'
]

Loading…
Cancel
Save