acecalisto3 commited on
Commit
f98c4cd
·
verified ·
1 Parent(s): 83fec9f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -19,9 +19,10 @@ import http.client
19
  from functools import lru_cache
20
  import json
21
  from concurrent.futures import ThreadPoolExecutor
22
- import warnings
23
- from warnings import UserWarning # Import UserWarning class
24
 
 
 
25
  # Security and configuration constants
26
  MAX_RETRIES = 3
27
  REQUEST_TIMEOUT = 30
 
19
  from functools import lru_cache
20
  import json
21
  from concurrent.futures import ThreadPoolExecutor
22
+ from warnings import warn, UserWarning
 
23
 
24
+ # Example usage
25
+ warn("This is a user warning", UserWarning)
26
  # Security and configuration constants
27
  MAX_RETRIES = 3
28
  REQUEST_TIMEOUT = 30