File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ def get_token_colab( ENV_PATH=None):
1111 ENV_PATH = "/content/drive/MyDrive/secrets/github.env"
1212 import os , requests
1313 from dotenv import load_dotenv
14- from github import Github , Auth , InputFileContent
1514 # Load token from Drive .env
1615 loaded = load_dotenv (ENV_PATH , override = True )
1716 assert loaded , f"Could not load { ENV_PATH } "
@@ -21,8 +20,9 @@ def get_token_colab( ENV_PATH=None):
2120
2221
2322def create_gist (username ,TOKEN ,verbose = 0 ):
24- filename = username + "-actions.txt"
23+ from github import Github , Auth , InputFileContent
2524 import requests
25+ filename = username + "-actions.txt"
2626 # (Optional) sanity check: see scopes returned by API headers
2727 resp = requests .get (
2828 "https://api.github.com/user" ,
Original file line number Diff line number Diff line change 22
33setup (
44 name = "mec" ,
5- version = "0.218 " ,
5+ version = "0.219 " ,
66 authors = ["Alfred Galichon" ],
7788 licence = "" ,
You can’t perform that action at this time.
0 commit comments