Skip to content

Commit fc0b3cf

Browse files
committed
Automatic commit Sat 22 Jun 2019 02:24:02 AM EEST
1 parent 8527e22 commit fc0b3cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mssql/mssql_shell.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def upload(mssql, stored_cwd, local_path, remote_path):
4949
data = f.read()
5050
md5sum = hashlib.md5(data).hexdigest()
5151
b64enc_data = b"".join(base64.encodestring(data).split()).decode()
52-
52+
5353
print("Data length (b64-encoded): "+str(len(b64enc_data)/1024)+"KB")
5454
for i in tqdm.tqdm(range(0, len(b64enc_data), BUFFER_SIZE), unit_scale=BUFFER_SIZE/1024, unit="KB"):
5555
cmd = 'echo '+b64enc_data[i:i+BUFFER_SIZE]+' >> "' + remote_path + '.b64"'
@@ -66,6 +66,7 @@ def upload(mssql, stored_cwd, local_path, remote_path):
6666
else:
6767
print("ERROR! MD5 hashes do NOT match!")
6868

69+
6970
def shell():
7071
mssql = None
7172
stored_cwd = None

0 commit comments

Comments
 (0)