Skip to content

Update couchup#1868

Merged
wohali merged 1 commit intoapache:masterfrom
pealthoff:patch-1
Jan 21, 2019
Merged

Update couchup#1868
wohali merged 1 commit intoapache:masterfrom
pealthoff:patch-1

Conversation

@pealthoff
Copy link
Copy Markdown
Contributor

Overview

The couchup script was not running if using python2, missing the quote from urllib

According to the python3 docuymentation:

The urllib module has been split into parts and renamed in Python 3 to urllib.request, urllib.parse, and urllib.error.

At the couchup script, the 2 alternatives at lines 22 and 24 are both importing the python3 alternative.

Testing recommendations

To test is just run the script on python2 before and after the change, because the error its just the import statement.

In python2 the urllib was not splitted yet like in python 3
so the correct is import quote directly from urlib if using python2
@wohali
Copy link
Copy Markdown
Member

wohali commented Jan 21, 2019

@pealthoff Thanks, we'll take this, but keep in mind we don't support Python 2 for the script anymore, see line 1:

https://github.com/apache/couchdb/blob/master/rel/overlay/bin/couchup#L1

@wohali wohali merged commit bfb9810 into apache:master Jan 21, 2019
janl pushed a commit that referenced this pull request Feb 7, 2019
@wohali wohali mentioned this pull request Feb 7, 2019
janl pushed a commit that referenced this pull request Feb 17, 2019
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

Successfully merging this pull request may close these issues.

2 participants