This file contains hidden or 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
# Python port of half duplex FIFO program : http://developers.sun.com/solaris/articles/named_pipes.html | |
import sys | |
import config | |
def main(): | |
if len(sys.argv) < 2: | |
print 'Usage : %s <string to be sent to the server>' % sys.argv[0] | |
sys.exit(0) | |
wr = open(config.HALF_DUPLEX, 'wb') |
This file contains hidden or 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
import collections | |
import ctypes | |
import ctypes.util | |
# bit masks | |
IN_ISDIR = 0x40000000 | |
IN_ALL_EVENTS = 0xfff | |
class inotify_event_struct(ctypes.Structure): | |
""" |
This file contains hidden or 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
diff --git a/stackexchange/__init__.py b/stackexchange/__init__.py | |
index c257838..32e3fb7 100644 | |
--- a/stackexchange/__init__.py | |
+++ b/stackexchange/__init__.py | |
@@ -542,7 +542,7 @@ through here.""" | |
try: | |
if isinstance(ob, datetime.datetime): | |
return str(time.mktime(ob.timetuple())) | |
- elif isinstance(ob, str): | |
+ elif isinstance(ob, basestring): |
NewerOlder