Skip to content
Snippets Groups Projects
Commit 82ff28d9 authored by Gavin Weir's avatar Gavin Weir
Browse files

changed platform definition from sys to sysplatform... it has a naming...

changed platform definition from sys to sysplatform... it has a naming collision with the platform package
parent c2cf0024
Branches
Tags
No related merge requests found
......@@ -6,14 +6,14 @@ Goal is to generate code that work on both python2x and python3x.
from numpy import generic as npscalar
from numpy import ndarray as nparray
from sys import version_info as pyver
from sys import platform as platform
from sys import platform as sysplatform
from os import name as osname
isposix = osname == 'posix'
isnt = osname == 'nt'
islinux = platform.startswith('linux')
iswin = platform.startswith('win')
islinux = sysplatform.startswith('linux')
iswin = sysplatform.startswith('win')
if isposix:
tmpdir = "/tmp/"
......@@ -172,4 +172,3 @@ def tounicode(string):
return _tostring(string, unicode, npunicode, _decode)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment