I am newbie in python and i am trying to open an localhost with write mode but i got following errors
with io.open('http:\\localhost:3000\\assets\\i18n\\locale-ru.json', 'w') as outfile:
IOError: [Errno 22] Invalid argument: 'http:\\localhost:3000\\assets\\i18n\\locale-ru.json'
Here is a piece of code:
 with io.open('http://localhost:3000//assets//i18n//locale-ru.json', 'w') as outfile:
  str_ = json.dumps(data_ru,
                    indent=4, sort_keys=True,
                    separators=(',', ': '), ensure_ascii=False)
  outfile.write(to_unicode(str_))
 
     
    