We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2af2dab commit 7f624e4Copy full SHA for 7f624e4
chat.py
@@ -1,4 +1,4 @@
1
-from client import Client, MY_IP
+from client import Client
2
import emoji
3
from terminal import Window, BOLD
4
client/__init__.py
@@ -1,19 +1,11 @@
"""
Package providing a simple chat client.
-
-Constants:
5
-* MY_IP - IP address of this computer
6
7
-Classes:
8
-* Client - a chat client
9
10
from socket import gethostbyname, gethostname
11
from .reader import Reader
12
from .writer import _Writer
13
from .listener import Listener
14
15
-MY_IP = gethostbyname(gethostname()) # get our IP. Be careful if you have multiple network interfaces or IPs
16
17
class Client:
18
19
A simple chat client.
0 commit comments