Mark Hammond: Ooops - even though Win32 handles the same args, there

was a superfluous check for the platform.
This commit is contained in:
Guido van Rossum 2000-03-31 01:20:33 +00:00
parent a7937e57f3
commit 706dbd03bd
1 changed files with 1 additions and 4 deletions

View File

@ -15,10 +15,7 @@ def test_both():
f.write('foo') f.write('foo')
f.write('\0'* (PAGESIZE-3) ) f.write('\0'* (PAGESIZE-3) )
if sys.platform[:3]=="win": m = mmap.mmap(f.fileno(), 2 * PAGESIZE)
m = mmap.mmap(f.fileno(), 2 * PAGESIZE)
else:
m = mmap.mmap(f.fileno(), 2 * PAGESIZE)
f.close() f.close()
# Simple sanity checks # Simple sanity checks