Skip to content

Commit

Permalink
Redefining print to flush always.
Browse files Browse the repository at this point in the history
  • Loading branch information
julialawrence committed Nov 15, 2023
1 parent f734933 commit ac895ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
from geventwebsocket.handler import WebSocketHandler
from geventwebsocket import WebSocketError
import websocket
import functools

print = functools.partial(print, flush=True) # redefine to flush the buffer always

# Load secrets from a JSON file
with open("secrets.json") as f:
Expand Down
3 changes: 3 additions & 0 deletions app/azure_active_directory.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import requests
from flask import flash
import functools

print = functools.partial(print, flush=True) # redefine to flush the buffer always


def create_aad_group(group_name, description, user_id, access_token, dry_run=False):
Expand Down

0 comments on commit ac895ed

Please sign in to comment.