Skip to content

Commit 8231282

Browse files
committed
remove click dependency from integrationdocs
This doesn't exactly mirror behavior of click.echo, but it's close enough for our purposes since this was intended to replace `print` initially.
1 parent b7c44a7 commit 8231282

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/sentry/utils/integrationdocs.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import json
88
import logging
99

10-
from click import echo
1110
import sentry
1211

1312
BASE_URL = 'https://docs.sentry.io/hosted/_platforms/{}'
@@ -46,6 +45,12 @@ def iteritems(d, **kw):
4645
logger = logging.getLogger('sentry')
4746

4847

48+
def echo(what):
49+
sys.stdout.write(what)
50+
sys.stdout.write('\n')
51+
sys.stdout.flush()
52+
53+
4954
def dump_doc(path, data):
5055
fn = os.path.join(DOC_FOLDER, path + '.json')
5156
directory = os.path.dirname(fn)

0 commit comments

Comments
 (0)