Gideon:

That's "figure 8" lamp cord. Same stuff as used in small fans, radios, etc.

Those closet lights come prewired like that. They're still sold in local hardware stores, manufactured by Cooper Electrical Mfg. (Former Eagle Electric).