astyle client/server: Update server address + minor changes (#2383)

This commit is contained in:
Sebastian 2019-11-21 08:01:05 +01:00 committed by GitHub
parent b9bc5d6d78
commit 590ec74998
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -1,8 +1,10 @@
import os
#!/usr/bin/env python3
import socket
import sys
import time
def receive_data(conn):
data = ''
for t in range(1000):
@ -26,8 +28,9 @@ def astyle(server_address, code):
sock.close()
return None
if __name__ == "__main__":
server_address = ('cppcheck.osuosl.org', 18000)
server_address = ('cppcheck1.osuosl.org', 18000)
for filename in sorted(sys.argv[1:]):
if not (filename.endswith('.cpp') or filename.endswith('.h')):
@ -46,4 +49,3 @@ if __name__ == "__main__":
f.close()
else:
print('Unchanged: ' + filename)

View File

@ -1,3 +1,4 @@
#!/usr/bin/env python3
import logging
import socket
@ -41,4 +42,3 @@ def server(port):
if __name__ == "__main__":
server(port=18000)