hsolbrig / hbreader

Promiscuous file and URL reader
Creative Commons Zero v1.0 Universal
5 stars 0 forks source link

Assignment idiom doesn't work in hbopen #7

Closed hsolbrig closed 3 years ago

hsolbrig commented 3 years ago

Need to be able to do both:

   with hbopen(...) as f:
         for l in f:
              ...

and

   f = hbopen(...)
   for l in f:
        ...
    f.close()

Currently, only the first idiom works