Skip to content

Commit

Permalink
Remove remaining dependency on ZipFiles
Browse files Browse the repository at this point in the history
  • Loading branch information
TimG1964 authored Oct 4, 2024
1 parent 3dc95bc commit fc3f8b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ sh = xf["mysheet"] # get a reference to a Worksheet
mutable struct XLSXFile <: MSOfficePackage
source::Union{AbstractString, IO}
use_cache_for_sheet_data::Bool # indicates whether Worksheet.cache will be fed while reading worksheet cells.
io::ZipFile.Reader
io::ZipArchives.ZipReader
io_is_open::Bool
files::Dict{String, Bool} # maps filename => isread bool
data::Dict{String, EzXML.Document} # maps filename => XMLDocument
Expand All @@ -295,7 +295,7 @@ mutable struct XLSXFile <: MSOfficePackage

function XLSXFile(source::Union{AbstractString, IO}, use_cache::Bool, is_writable::Bool)
check_for_xlsx_file_format(source)
io = ZipFile.Reader(source)
io = ZipArchives.ZipReader(read(source))
xl = new(source, use_cache, io, true, Dict{String, Bool}(), Dict{String, EzXML.Document}(), Dict{String, Vector{UInt8}}(), EmptyWorkbook(), Vector{Relationship}(), is_writable)
xl.workbook.package = xl
finalizer(close, xl)
Expand Down

0 comments on commit fc3f8b1

Please sign in to comment.