Skip to content

Commit

Permalink
[Discord] Replace tomli usage with tomllib
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Dec 17, 2023
1 parent fd0151e commit ad260de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Discord/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from platform import python_version
import random
import sys
import tomllib
import traceback
from urllib import parse
# TODO: use urllib.parse
Expand All @@ -31,7 +32,6 @@
import pyowm
import requests
import sentry_sdk
import tomli # Use tomllib in Python 3.11
import tweepy
import tweepy.asynchronous
import twitchio
Expand Down Expand Up @@ -275,7 +275,7 @@ def aiml_predicates(self):
@functools.cache
def config(self):
with open("../config.toml", "rb") as config_file:
return tomli.load(config_file)
return tomllib.load(config_file)

@property
def emoji_guild_ids(self):
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ sphobjinv==2.3.1
SQLAlchemy==2.0.23
sympy==1.12
tabulate==0.9.0
tomli==2.0.1
treys==0.1.8
tweepy[async]==4.14.0
types-beautifulsoup4==4.12.0.7
Expand Down

0 comments on commit ad260de

Please sign in to comment.