fabioz/mu-repo

Add Python 3 support

xaocon opened this issue · 2 comments

You can see the issue below.

% mu register test           
Repository: test registered
Traceback (most recent call last):
  File "/home/emp/src/mu-repo/mu", line 4, in <module>
    mu_repo.main()
  File "/home/emp/src/mu-repo/mu_repo/__init__.py", line 243, in main
    return Run(Params(config, args, config_file))
  File "/home/emp/src/mu-repo/mu_repo/action_register.py", line 50, in Run
    f.write(str(config))
  File "/home/emp/src/mu-repo/mu_repo/config.py", line 129, in __str__
    for group_name, repos in sorted(val.iteritems()):
AttributeError: 'dict' object has no attribute 'iteritems'

Sorry about not answering sooner (for some reason github did not register me for notifications on the repo automatically).

The problem is that mu-repo is currently only Python 2 compatible...

I'll take a look if it'll be too dificult to port it to Python 3 (it shouldn't be as its codebase is pretty small)... still, I don't have a timeframe for that (so, if a pull request is given, I do appreciate it).

Ok, Python 3 should be supported now: 30891c6