arc90/git-sweep

'raw_input' is not defined

Opened this issue · 9 comments

When I run git-sweep cleanup, the branches to be cleaned up are listed then this:

Delete these branches? (y/n) name 'raw_input' is not defined

And nothing is cleaned up.

This issue arises because git-sweep is not compatible with Python 3.
Install it with pip2 install git-sweep

Eh?

Please consider stating this in your README. It currently says Python >=2.6 as the requirement.

Got the same. I did --force and it deleted the branches as described

I'm not a python expert but would love if it was cross compatible with multiple versions, since working with multiple python projects, especially with pyenv, you'd have constantly switch between python versions in order to run this command correctly.

possible fix - change it here

answer = raw_input()
? ... https://stackoverflow.com/a/4915366/4114514

as @dfuentes77 mention:
git-sweep cleanup --force
works as a workaround!


This issue arises because git-sweep is not compatible with Python 3.
Install it with pip2 install git-sweep

I tried.
pip2 install --user git-sweep || easy_install git-sweep
It doesn't helps.

possible fix - change it here

answer = raw_input()

? ... https://stackoverflow.com/a/4915366/4114514

in this case, we have to adopt the whole project for py3. not just this line.

especially since python 2.7 is no longer maintained