Fixed dumb formatting mistake.

I was treating the "src" parameter of Grid.__init__ as a file when
it wasn't one yet -- what I needed to do was check to see if it
was a text file name, so I changed it to do a simple endswith
check on the string passed to src.