Skip to content

Commit

Permalink
replace Base.Base64 with stdlib Base64 module (#24361)
Browse files Browse the repository at this point in the history
* add Base64 module

* replace Base.Base64 with stdlib Base64 module
  • Loading branch information
JeffBezanson authored Oct 28, 2017
1 parent 2044957 commit a8f8df6
Show file tree
Hide file tree
Showing 18 changed files with 609 additions and 373 deletions.
290 changes: 0 additions & 290 deletions base/base64.jl

This file was deleted.

5 changes: 5 additions & 0 deletions base/deprecated.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1356,6 +1356,11 @@ export conv, conv2, deconv, filt, filt!, xcorr
@deprecate_binding Profile nothing true ", run `using Profile` instead"
@eval @deprecate_moved $(Symbol("@profile")) "Profile" true true

@deprecate_moved base64encode "Base64" true true
@deprecate_moved base64decode "Base64" true true
@deprecate_moved Base64EncodePipe "Base64" true true
@deprecate_moved Base64DecodePipe "Base64" true true

# PR #21709
@deprecate cov(x::AbstractVector, corrected::Bool) cov(x, corrected=corrected)
@deprecate cov(x::AbstractMatrix, vardim::Int, corrected::Bool) cov(x, vardim, corrected=corrected)
Expand Down
4 changes: 0 additions & 4 deletions base/exports.jl
Original file line number Diff line number Diff line change
Expand Up @@ -715,10 +715,6 @@ export
# strings and text output
ascii,
base,
base64encode,
base64decode,
Base64EncodePipe,
Base64DecodePipe,
startswith,
bin,
bitstring,
Expand Down
4 changes: 2 additions & 2 deletions base/multimedia.jl
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ that binary data is base64-encoded as an ASCII string.
"""
stringmime(m::MIME, x) = istextmime(m) ? reprmime(m, x) : _binstringmime(m, x)

_binstringmime(m::MIME, x) = base64encode(verbose_show, m, x)
_binstringmime(m::MIME, x::Vector{UInt8}) = base64encode(write, x)
_binstringmime(m::MIME, x) = Base64.base64encode(verbose_show, m, x)
_binstringmime(m::MIME, x::Vector{UInt8}) = Base64.base64encode(write, x)

"""
istextmime(m::MIME)
Expand Down
2 changes: 0 additions & 2 deletions base/stream.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ abstract type LibuvStream <: IO end
# . +- Pipe
# . +- Process (not exported)
# . +- ProcessChain (not exported)
# +- Base64DecodePipe
# +- Base64EncodePipe
# +- BufferStream
# +- DevNullStream (not exported)
# +- Filesystem.File
Expand Down
Loading

0 comments on commit a8f8df6

Please sign in to comment.