Making indents consistent with PEP8. (issue 7314118)

1 view
Skip to first unread message

dhe...@google.com

unread,
Feb 19, 2013, 6:23:57 PM2/19/13
to joe.gr...@gmail.com, httpli...@googlegroups.com, re...@codereview-hr.appspotmail.com
Reviewers: jcgregorio,

Description:
Making indents consistent with PEP8.

Please review this at http://codereview.appspot.com/7314118/

Affected files:
M python2/httplib2/__init__.py
M python2/httplib2/iri2uri.py
M python3/httplib2/__init__.py
M python3/httplib2/iri2uri.py


dhe...@google.com

unread,
Feb 19, 2013, 6:24:41 PM2/19/13
to joe.gr...@gmail.com, httpli...@googlegroups.com, re...@codereview-hr.appspotmail.com
setup.py, socks.py and the tests could also use some work, though I
didn't touch these.

Should I?

https://codereview.appspot.com/7314118/

dhe...@google.com

unread,
Feb 19, 2013, 6:25:08 PM2/19/13
to joe.gr...@gmail.com, httpli...@googlegroups.com, re...@codereview-hr.appspotmail.com
Also, pylint complained about some of the Python3 syntax, so my changes
there were done fully by hand.

https://codereview.appspot.com/7314118/

Joe Gregorio

unread,
Feb 19, 2013, 8:17:07 PM2/19/13
to dhe...@google.com, Joe Gregorio, httplib2-dev, re...@codereview-hr.appspotmail.com
One thing I've been pondering is can we use 3to2 and kill the Python
2.x version of the code?
--
Joe Gregorio http://bitworking.org

Danny Hermes

unread,
Feb 19, 2013, 9:15:20 PM2/19/13
to Joe Gregorio, Joe Gregorio, httplib2-dev, re...@codereview-hr.appspotmail.com
Not likely. None of the AppEngine specific parts are in the python3 package.

Though we could try to tear them out a a separate module in the python2 package.
--
Danny Hermes
Developer Programs Engineer

joe.gr...@gmail.com

unread,
Feb 20, 2013, 3:16:05 PM2/20/13
to dhe...@google.com, j...@bitworking.org, httpli...@googlegroups.com, re...@codereview-hr.appspotmail.com
On 2013/02/20 02:15:41, dhermes wrote:
> Not likely. None of the AppEngine specific parts are in the python3
package.

> Though we could try to tear them out a a separate module in the
python2
> package.

SGTM, but let's do that as a separate CL.



> On Tue, Feb 19, 2013 at 5:17 PM, Joe Gregorio
<mailto:j...@bitworking.org> wrote:

> > One thing I've been pondering is can we use 3to2 and kill the Python
> > 2.x version of the code?
> >
> > On Tue, Feb 19, 2013 at 6:25 PM, <mailto:dhe...@google.com> wrote:
> > > Also, pylint complained about some of the Python3 syntax, so my
changes
> > > there were done fully by hand.
> > >
> > > https://codereview.appspot.com/7314118/
> >
> >
> >
> > --
> > Joe Gregorio http://bitworking.org
> >



> --
> Danny Hermes
> Developer Programs Engineer



https://codereview.appspot.com/7314118/

joe.gr...@gmail.com

unread,
Feb 20, 2013, 3:18:11 PM2/20/13
to dhe...@google.com, j...@bitworking.org, httpli...@googlegroups.com, re...@codereview-hr.appspotmail.com
Just tried to apply the patch and it failed with:


applying issue7314118_1.diff
patching file python3/httplib2/iri2uri.py
Hunk #1 FAILED at 27
1 out of 1 hunks FAILED -- saving rejects to file
python3/httplib2/iri2uri.py.rej
patch failed, unable to continue (try -v)
patch failed, rejects left in working dir
errors during apply, please fix and refresh issue7314118_1.diff
jcgregorio@wpgntai-ubiq72:~/oldhome/projects/httplib2 on default?
[issue7314118_1.diff]
$

dhe...@google.com

unread,
Feb 20, 2013, 3:33:15 PM2/20/13
to joe.gr...@gmail.com, j...@bitworking.org, httpli...@googlegroups.com, re...@codereview-hr.appspotmail.com
I'm not sure I've ever gotten Rietveld to behave when it comes to
patches. I'll send it your way as a zip.

https://codereview.appspot.com/7314118/

joe.gr...@gmail.com

unread,
Feb 25, 2013, 11:10:03 AM2/25/13
to dhe...@google.com, j...@bitworking.org, httpli...@googlegroups.com, re...@codereview-hr.appspotmail.com
Reply all
Reply to author
Forward
0 new messages