Skip to content

Commit

Permalink
fix Python 2.6 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj committed Dec 6, 2014
1 parent 6490045 commit 9a439cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pydates.jl
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ for T in (:Date, :DateTime, :Delta)
end

function pydate_query(o::PyObject)
pyversion.major == 2 && pyversion.minor < 7 && return None
if PyDate_Check(o)
return PyDateTime_Check(o) ? Dates.DateTime : Dates.Date
elseif PyDelta_Check(o)
Expand Down

0 comments on commit 9a439cd

Please sign in to comment.