Skip to content

Commit

Permalink
Backport mmap fix to master. Version 3.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
rsmith-nl committed May 17, 2016
1 parent 0dcbff3 commit f1b48bc
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
_scripts = outnames

setup(name='stltools',
version='$Revision$'[11:-2],
version='3.3',
license='BSD',
description='Programs to read and convert STL files.',
author='Roland Smith', author_email='rsmith@xs4all.nl',
Expand Down
2 changes: 1 addition & 1 deletion stl2pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import numpy as np
from stltools import stl, bbox, utils, vecops, matrix

__version__ = '$Revision$'[11:-2]
__version__ = '3.3'


def usage():
Expand Down
2 changes: 1 addition & 1 deletion stl2pov.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import time
from stltools import stl, utils

__version__ = '$Revision$'[11:-2]
__version__ = '3.3'


def mesh1(name, vertices):
Expand Down
2 changes: 1 addition & 1 deletion stl2ps.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import numpy as np
from stltools import stl, bbox, utils, vecops, matrix

__version__ = '$Revision$'[11:-2]
__version__ = '3.3'


def usage():
Expand Down
2 changes: 1 addition & 1 deletion stlinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import time
from stltools import stl, bbox, utils

__version__ = '$Revision$'[11:-2]
__version__ = '3.3'


def main(argv):
Expand Down
2 changes: 1 addition & 1 deletion stltools/bbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

import numpy as np

__version__ = '$Revision$'[11:-2]
__version__ = '3.3'


def makebb(pnts):
Expand Down
2 changes: 1 addition & 1 deletion stltools/matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import math
import numpy as np

__version__ = '$Revision$'[11:-2]
__version__ = '3.3'


def I():
Expand Down
4 changes: 2 additions & 2 deletions stltools/stl.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import vecops as vo
import numpy as np

__version__ = '$Revision$'[11:-2]
__version__ = '3.3'


def _striplines(m):
Expand Down Expand Up @@ -119,7 +119,7 @@ def readstl(name):
of the facets, and the name of the object as given in the STL file.
"""
with open(name, 'rb') as f:
mm = mmap.mmap(f.fileno(), 0, prot=mmap.PROT_READ)
mm = mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_READ)
vertices, name = _parsebinary(mm)
if vertices is None:
mm.seek(0)
Expand Down
2 changes: 1 addition & 1 deletion stltools/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
import sys
import matrix as m

__version__ = '$Revision$'[11:-2]
__version__ = '3.3'


def outname(inname, extension, addenum=''):
Expand Down
2 changes: 1 addition & 1 deletion stltools/vecops.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import numpy as np
import math as m

__version__ = '$Revision$'[11:-2]
__version__ = '3.3'


def length(v):
Expand Down

0 comments on commit f1b48bc

Please sign in to comment.