Skip to content

Commit c691f5c

Browse files
committed
lint
1 parent a820a55 commit c691f5c

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

BigStash/upload.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
import sys
3131
import os
3232
import errno
33-
import sys
3433
import logging
3534
import posixpath
3635
import threading

BigStash/winargvfix.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
import os
22
import sys
3-
from ctypes import (WINFUNCTYPE, windll, POINTER, byref, c_int,
3+
from ctypes import (windll, POINTER, byref, c_int,
44
create_unicode_buffer, c_wchar_p)
5-
from ctypes.wintypes import LPWSTR, LPCWSTR
65

76

87
def fix_env_on_windows():
98
def getEnvironmentVariable(name):
10-
name= unicode(name) # make sure string argument is unicode
11-
n= windll.kernel32.GetEnvironmentVariableW(name, None, 0)
12-
if n==0:
9+
name = unicode(name) # make sure string argument is unicode
10+
n = windll.kernel32.GetEnvironmentVariableW(name, None, 0)
11+
if n == 0:
1312
return None
14-
buf= create_unicode_buffer(u'\0'*n)
13+
buf = create_unicode_buffer(u'\0'*n)
1514
windll.kernel32.GetEnvironmentVariableW(name, buf, n)
1615
return buf.value
1716
for k in os.environ.keys():
@@ -43,8 +42,8 @@ def fix_argv_on_windows():
4342
break
4443
argv = argv[1:]
4544
if arg == '-m':
46-
# sys.argv[0] should really be the absolute path of the module source,
47-
# but never mind
45+
# sys.argv[0] should really be the absolute path of the module
46+
# source, but never mind
4847
break
4948
if arg == '-c':
5049
argv[0] = '-c'

0 commit comments

Comments
 (0)