Skip to content
This repository was archived by the owner on Mar 2, 2024. It is now read-only.

Commit 0b57388

Browse files
committed
Fix formatting
1 parent 7bca219 commit 0b57388

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

example/socad_cadence/cadence.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,16 @@
1919
import sys
2020

2121
import util
22-
# If can't import from the global package 'socad' import from a local package.
22+
23+
# Try to import 'Server' from the global package 'socad'
2324
try:
2425
from socad import Server
2526
except ImportError as err:
26-
# If can't import from the file server.py
27-
try:
28-
from server import Server
27+
# If can't import from the global package
28+
try: # Try to import from server.py
29+
from interface.server import Server
2930
except ImportError as err:
31+
# If can't import the package, quit the program
3032
print("[ERROR] {0}. Exiting...".format(err))
3133
sys.exit('1')
3234

socad/client.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ class Client:
3131
Arguments:
3232
sock (object, optional): socket to use for the connection
3333
(default: None).
34-
35-
Attributes:
36-
sock (object): socket to use for the connection with a server.
3734
"""
3835

3936
def __init__(self, sock=None):

0 commit comments

Comments
 (0)