File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,9 @@ dummy-variables-rgx=_|dummy
133
133
# you should avoid to define new builtins when possible.
134
134
additional-builtins =
135
135
136
+ # List of modules that can redefine builtins. (For python 2/3 compatibility)
137
+ redefining-builtins-modules =builtins
138
+
136
139
137
140
[TYPECHECK]
138
141
Original file line number Diff line number Diff line change 22
22
# are not updated. Review board id is retrieved from the remote link in the jira.
23
23
# Print help: submit-patch.py --h
24
24
import argparse
25
+ from builtins import input , str
25
26
import getpass
26
27
import git
27
28
import json
@@ -146,7 +147,7 @@ def get_patch_name_with_version(patch_name_prefix):
146
147
if html .status_code != 200 :
147
148
log_fatal_and_exit (" Cannot fetch jira information. Status code %s" , html .status_code )
148
149
# Iterate over patch names starting from version 1 and return when name is not already used.
149
- content = unicode (html .content , 'utf-8' )
150
+ content = str (html .content , 'utf-8' )
150
151
for i in range (1 , 1000 ):
151
152
name = patch_name_prefix + "." + ('{0:03d}' .format (i )) + ".patch"
152
153
if name not in content :
@@ -196,10 +197,10 @@ def get_credentials():
196
197
log_fatal_and_exit (" Couldn't decrypt ~/.apache-creds file. Exiting.." )
197
198
creds = json .loads (content )
198
199
else :
199
- creds ['jira_username' ] = raw_input ("Jira username:" )
200
+ creds ['jira_username' ] = input ("Jira username:" )
200
201
creds ['jira_password' ] = getpass .getpass ("Jira password:" )
201
202
if not args .skip_review_board :
202
- creds ['rb_username' ] = raw_input ("Review Board username:" )
203
+ creds ['rb_username' ] = input ("Review Board username:" )
203
204
creds ['rb_password' ] = getpass .getpass ("Review Board password:" )
204
205
return creds
205
206
You can’t perform that action at this time.
0 commit comments