Skip to content

Fix string encoding for Python 3 compatibility#1208

Open
ReplicantK wants to merge 1 commit into
mininet:masterfrom
ReplicantK:master
Open

Fix string encoding for Python 3 compatibility#1208
ReplicantK wants to merge 1 commit into
mininet:masterfrom
ReplicantK:master

Conversation

@ReplicantK

Copy link
Copy Markdown

Issue:
This PR resolves issue #1190, related to string encoding differences between Python 2 and Python 3. In Python 3, running the code resulted in b'hostname', for example, due to unnecessary encoding.

Changes:

  • Updated code to handle string encoding correctly for Python 3 compatibility.

Testing:
I've tested these changes on Python 2 and Python 3.

@Infra-Creeper

Copy link
Copy Markdown

Still I was facing difficulty with minedits feature to save and load topologies. I have fixed the error but I didn't record it with git. Here is the python code for it
miniedit.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants