Commits

Shu Zong Chen committed 03e8f55

stub files for other things

Comments (0)

Files changed (3)

+
+
+_DATA = {}
+
+def get_file(fn):
+	return _DATA[fn]
+
+def set_file(fn, data):
+	_DATA[fn] = data
+import os as _os
+
+class os(object):
+	pass
+
+os.name = _os.name
+os.environ = _os.environ
+from fakeos import os, open
+
+with open('fish.txt') as fh:
+	print fh.read()
+