MathOverflow will be down for maintenance for approximately 3 hours, starting Monday evening (06/24/2013) at approximately 9:00 PM Eastern time (UTC-4).
show/hide this revision's text 1 [made Community Wiki]

I don't have my copy of Kelley handy but I think in chapter 1 he gives the example where X is a countable disjoint union of open intervals and a countable discrete set while Y is a countable disjoint union of left-closed, right-open intervals and a countable discrete set.The point is that you can get a half closed interval from an open one by attaching an endpoint and you can build an open interval using a sequence of half closed intervals.