Skip to content

Commit

Permalink
Merge pull request #149 from JuliaIO/tan/compat
Browse files Browse the repository at this point in the history
add hasproperty for Julia < 1.2 compat
  • Loading branch information
tanmaykm authored Nov 23, 2020
2 parents 1378c79 + 4b55cf8 commit ef609a9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ uuid = "3349acd9-ac6a-5e09-bcdb-63829b23a429"
keywords = ["protobuf", "protoc"]
license = "MIT"
desc = "Julia protobuf implementation"
version = "0.9.0"
version = "0.9.1"

[deps]
Logging = "56ddb016-857b-54e1-b83d-db4d58db5568"
Expand Down
8 changes: 7 additions & 1 deletion src/ProtoBuf.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
module ProtoBuf

import Base: setproperty!, getproperty, hasproperty, propertynames, show, copy!, deepcopy, hash, isequal, ==
import Base: setproperty!, getproperty, propertynames, show, copy!, deepcopy, hash, isequal, ==

if VERSION < v"1.2.0-DEV.272"
hasproperty(x, s::Symbol) = s in propertynames(x)
else
import Base: hasproperty
end

export writeproto, readproto, ProtoMeta, ProtoMetaAttribs, meta
export isfilled, which_oneof
Expand Down

0 comments on commit ef609a9

Please sign in to comment.