Anthonyg5005 commited on
Commit
f6b4fda
·
verified ·
1 Parent(s): 0e9f590

fix variable

Browse files

pylance detected issue. wasn't issue in testing but still fixed

Files changed (1) hide show
  1. 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
- if os.name == 'nt':
 
7
  osclear = 'cls'
8
- elif os.name == 'posix':
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 = ''