Skip to content

Commit 33925b7

Browse files
committed
Fixed some deprecated operator syntax
1 parent 9e3cea0 commit 33925b7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/gentypes.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ cleartypes() = error("cleartypes() renamed to rostypereset()")
149149
#so they will appear first in the generated code.
150150
function addtype!(mod::ROSMsgModule, typ::String)
151151
global _rospy_objects
152-
if ! (typ in mod.members)
152+
if !(typ in mod.members)
153153
@debug("Message type import: ", _fullname(mod), ".", typ)
154154
pymod, pyobj = _pyvars(_fullname(mod), typ)
155155

@@ -165,7 +165,7 @@ end
165165
#first.
166166
function addtype!(mod::ROSSrvModule, typ::String)
167167
global _rospy_objects
168-
if ! (typ in mod.members)
168+
if !(typ in mod.members)
169169
@debug("Service type import: ", _fullname(mod), ".", typ)
170170
pymod, pyobj = _pyvars(_fullname(mod), typ)
171171

@@ -539,7 +539,7 @@ end
539539
#Assumed to be Dict(String => Iterable{String})
540540
function _order(d::Dict)
541541
trecurse!(currlist, d, t) = begin
542-
if ! (t in currlist)
542+
if !(t in currlist)
543543
if haskey(d, t) #do dependencies first
544544
for dt in d[t]
545545
if dt != t

src/time.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#All time related types and functions
22

3-
import Base: convert, isless, sleep
3+
import Base: convert, isless, sleep, +, -, ==
44
export Time, Duration, Rate, to_sec, to_nsec, get_rostime, rossleep
55

66
#Time type definitions

0 commit comments

Comments
 (0)