Anthonyg5005
commited on
fix variable
Browse filespylance detected issue. wasn't issue in testing but still fixed
- manage branches.py +3 -2
manage branches.py
CHANGED
@@ -3,9 +3,10 @@ import os
|
|
3 |
from huggingface_hub import create_branch, delete_branch, login, get_token, whoami
|
4 |
|
5 |
#define clear screen function
|
6 |
-
|
|
|
7 |
osclear = 'cls'
|
8 |
-
elif
|
9 |
osclear = 'clear'
|
10 |
else:
|
11 |
osclear = ''
|
|
|
3 |
from huggingface_hub import create_branch, delete_branch, login, get_token, whoami
|
4 |
|
5 |
#define clear screen function
|
6 |
+
oname = os.name
|
7 |
+
if oname == 'nt':
|
8 |
osclear = 'cls'
|
9 |
+
elif oname == 'posix':
|
10 |
osclear = 'clear'
|
11 |
else:
|
12 |
osclear = ''
|