Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3 incompatible #3

Closed
Ennosuke opened this issue Jun 15, 2015 · 2 comments
Closed

Python 3 incompatible #3

Ennosuke opened this issue Jun 15, 2015 · 2 comments

Comments

@Ennosuke
Copy link

Currently the script is incompatible to python 3. It throws following error:

  File "dnstwist.py", line 97
    print 'dnstwist (' + __version__ + ') by marcin@ulikowski.pl'
                     ^
SyntaxError: invalid syntax

I use

Python 3.4.2 (v3.4.2:ab2c023a9432, Oct  6 2014, 22:16:31) [MSC v.1600 64 bit (AMD64)] on win32

Adding parenthesis to all prints that do not have them solves the issue. I don't know if it's backwards compatible that way, but I whink python 3 should be preferred over python 2.

@elceef
Copy link
Owner

elceef commented Jun 15, 2015

Hi. Thank you for pointing this out. It is fixed now.

$ python3 dnstwist.py 
dnstwist (20150615) by marcin@ulikowski.pl
Usage: dnstwist.py <domain>

@Ennosuke
Copy link
Author

Nice, thank you for your fast response :)

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

No branches or pull requests

2 participants