-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8b1bf90
commit de135dd
Showing
2 changed files
with
11 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,18 +64,16 @@ | |
|
||
import sys | ||
|
||
py3 = False | ||
if sys.version_info.major >= 3: | ||
py3 = True | ||
long = int | ||
unicode = str | ||
|
||
def int2byte(c): | ||
if py3: | ||
py3 = sys.version >= '3' | ||
if py3: | ||
long = int #@ReservedAssignment | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
jonathanunderwood
Author
Contributor
|
||
unicode = str #@ReservedAssignment | ||
def int2byte(c): | ||
return bytes([c]) | ||
else: | ||
else: | ||
def int2byte(c): | ||
return chr(c) | ||
|
||
import struct | ||
from threading import Lock | ||
|
||
|
Can you please remove these comments or expand on them to explain their meaning?