From b72b70dd4497b0b4a7834c5c7f9b369d2c9d7973 Mon Sep 17 00:00:00 2001 From: DevRuby Date: Tue, 24 Oct 2023 08:42:06 +0900 Subject: [PATCH] refactor: Hide `count` variable with __ --- TrackerGG/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/TrackerGG/__init__.py b/TrackerGG/__init__.py index 91a3ad4..caa0473 100644 --- a/TrackerGG/__init__.py +++ b/TrackerGG/__init__.py @@ -33,23 +33,23 @@ __all__ = ["Models", "CSGOClient", "ApexClient", "utils"] -count = 0 +__count = 0 try: import aiohttp - count += 1 + __count += 1 except ImportError: pass try: import httpx - count += 1 + __count += 1 except ImportError: pass -if count == 0: +if __count == 0: raise ImportError( "\nAt least one of aiohttp or httpx libraries is required\nTry `pip install aiohttp` or `pip install httpx`" )