upload example not python3

Bug #1587586 reported by Carl Karsten
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-swiftclient
New
Undecided
Unassigned

Bug Description

https://github.com/openstack/python-swiftclient/blob/master/examples/upload.py

Does not run in python 3:

```
$ python3 upload.py
Traceback (most recent call last):
  File "upload.py", line 3, in <module>
    from os.path import join, walk
ImportError: cannot import name 'walk'
```

ps -
I don't think upload.py is a good example. most of the code is about walking dirs and munging lists of python strings.
I think the whole upload.py should be thrown out and replaced with something that just uploads a static list of files.

This is much closer to what I want, if only it started with the imports.
https://github.com/openstack/python-swiftclient/blob/master/doc/source/client-api.rst
 "Create a new object with the contents of a local text file:"

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.