google/eddystone

optparse deprecated since version 2.7

PrabhanshuAttri opened this issue · 7 comments

optparse used in linux implementation of Eddystone URL is deprecated. Python3 uses argparse now. Can I take this issue and fix it?

Please do. But just to be clear, which implementation are you talking about?

All the scripts under eddystone-url/implementations/linux/ use optparse. Thanks @scottjenson

Can you include a test for Python version for those not using 3.x

On 06/18/2016 01:49 PM, Prabhanshu Attri wrote:

All the scripts under eddystone-url/implementations/linux/ use
optparse. Thanks @scottjenson https://github.com/scottjenson


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#155 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AIrlX0WCmjHgyiUVzgLrlhWuzi8dHQvRks5qNEvQgaJpZM4I5BLF.

Hey @tolson2000 I just found out that argparse is compatible with python 2.x as it is based on optparse. Python Docs

OK, cool. No need to test for it then.

On 06/18/2016 03:04 PM, Prabhanshu Attri wrote:

Hey @tolson2000 https://github.com/tolson2000 I just found out that
argparse is compatible with python 2.x as it is based on optparse.
Python Docs https://docs.python.org/2/howto/argparse.html


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#155 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AIrlX_UhK-0_8LA5zh-5lm6bRCxmBpagks5qNF10gaJpZM4I5BLF.

Hi @tolson2000 just to let you know, these scripts were written in python3 only as subprocess calls are supported in python 3. I think the developer might be facing issues with os.call.