mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
(cherry picked from commit 4fefae6a1d9fbc6df174d53222ceba9208691b65) GitOrigin-RevId: d6e65ace1378765be246fe09a86d2bff133855df
27 lines
448 B
Python
27 lines
448 B
Python
from __future__ import print_function
|
|
|
|
import json
|
|
|
|
|
|
def return_my_lucking_link():
|
|
url = 'https://example.com/'
|
|
return url
|
|
|
|
|
|
def return_my_lucking_payload():
|
|
payload = {'some': 'data'}
|
|
return payload
|
|
|
|
|
|
class A(object):
|
|
def do_stuff(self, x, data=None):
|
|
return "%s: %s" % (x, data)
|
|
|
|
|
|
r = A().do_stuff( # breakpoint
|
|
return_my_lucking_link(),
|
|
data=json.dumps(return_my_lucking_payload())
|
|
)
|
|
|
|
print(r) # breakpoint
|