Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

NameError: name 'file' is not defined #12

Open
camrossi opened this issue Mar 4, 2020 · 2 comments
Open

NameError: name 'file' is not defined #12

camrossi opened this issue Mar 4, 2020 · 2 comments

Comments

@camrossi
Copy link

camrossi commented Mar 4, 2020

Hi,

I think you made a typo in arya.py:
https://github.com/datacenter/arya/blob/master/arya/arya.py#L443
Shouldn't it be
with open( instead of with file(

Same at https://github.com/datacenter/arya/blob/master/arya/arya.py#L468

My understanding is that file was an alias for open in Python2 but got removed in python3.

@M35a2
Copy link

M35a2 commented Apr 22, 2020

Hey camrossi,
Thanks for catching that.. this fixed my problem

@mupett
Copy link

mupett commented Aug 7, 2020

me too. thanks Cam

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants