Skip to content

Commit

Permalink
prepare release
Browse files Browse the repository at this point in the history
  • Loading branch information
mozman committed Jan 28, 2018
1 parent c0e4517 commit 8810f93
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion NEWS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
News
====

version 0.8.5 - ?
version 0.8.5 - 2018-01-28

* CHANGE: block names are case insensitive 'TEST' == 'Test' (like AutoCAD)
* CHANGE: table entry (layer, linetype, style, dimstyle, ...) names are case insensitive 'TEST' == 'Test' (like AutoCAD)
Expand Down
2 changes: 1 addition & 1 deletion ezdxf/filemanagement.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def readzip(zipfile, filename=None):
Args:
zipfile: name of the zip archive
filename: filename of DXF file, or None to read the first DXF file from the zip archive.
"""
with ctxZipReader(zipfile, filename) as zipstream:
dwg = read(zipstream, dxfversion=zipstream.dxfversion)
Expand Down
6 changes: 3 additions & 3 deletions ezdxf/pp/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from ezdxf.lldxf.const import DXFError, DXFStructureError
from ezdxf.lldxf.tagger import low_level_tagger, tag_compiler
from ezdxf.lldxf.validator import is_dxf_file
from ezdxf.filemanagement import detect_encoding
from ezdxf.filemanagement import dxf_file_info
from ezdxf.lldxf.repair import tag_reorder_layer
import webbrowser

Expand All @@ -42,15 +42,15 @@ def pretty_print(filename):

def raw_pretty_print(filename, nocompile=True, legacy_mode=False):
try:
encoding = detect_encoding(str(filename))
info = dxf_file_info(str(filename))
except IOError:
print("Unable to read DXF file '{}'.".format(filename))
sys.exit(1)
except DXFError as e:
print(str(e))
sys.exit(2)

with io.open(filename, mode='rt', encoding=encoding, errors='ignore') as dxf:
with io.open(filename, mode='rt', encoding=info.encoding, errors='ignore') as dxf:
tagger = low_level_tagger(dxf)
if legacy_mode:
tagger = tag_reorder_layer(tagger)
Expand Down

0 comments on commit 8810f93

Please sign in to comment.