Skip to content
This repository has been archived by the owner on Mar 27, 2018. It is now read-only.

Commit

Permalink
fixed a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bartdag committed May 12, 2011
1 parent 193af41 commit b66932d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions py4j-python/src/py4j/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,12 @@
long = int
basestring = str
unicode = str
bytearray2 = bytes
unichr = chr
bytestr = bytes
tobytestr = lambda s: bytes(s, 'ascii')
isbytestr = lambda s: False
isbytearray = lambda s: isinstance(s, bytearray) or isinstance(s, bytes)
# Must be at the end... Otherwise all other references to bytearray will
# point to this one...
bytearray2 = bytes

if hasattr(inspect, 'getattr_static'):
hasattr2 = lambda obj, attr: bool(inspect.getattr_static(obj, attr, False))
Expand Down

0 comments on commit b66932d

Please sign in to comment.