Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit965a08c

Browse files
committed
Applied autopep8
autopep8 -v -j 8 --max-line-length 120 --in-place --recursive
1 parentacac4bb commit965a08c

File tree

6 files changed

+19
-18
lines changed

6 files changed

+19
-18
lines changed

‎git/objects/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ def parse_date(string_date):
157157
try:
158158
dtstruct=time.strptime(date_part,fmt)
159159
utctime=calendar.timegm((dtstruct.tm_year,dtstruct.tm_mon,dtstruct.tm_mday,
160-
tstruct.tm_hour,tstruct.tm_min,tstruct.tm_sec,
161-
dtstruct.tm_wday,dtstruct.tm_yday,tstruct.tm_isdst))
160+
tstruct.tm_hour,tstruct.tm_min,tstruct.tm_sec,
161+
dtstruct.tm_wday,dtstruct.tm_yday,tstruct.tm_isdst))
162162
returnint(utctime),offset
163163
exceptValueError:
164164
continue

‎git/remote.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,12 @@ class PushInfo(object):
100100
NEW_TAG,NEW_HEAD,NO_MATCH,REJECTED,REMOTE_REJECTED,REMOTE_FAILURE,DELETED, \
101101
FORCED_UPDATE,FAST_FORWARD,UP_TO_DATE,ERROR= [1<<xforxinrange(11)]
102102

103-
_flag_map= {'X':NO_MATCH,
104-
'-':DELETED,
103+
_flag_map= {'X':NO_MATCH,
104+
'-':DELETED,
105105
'*':0,
106-
'+':FORCED_UPDATE,
106+
'+':FORCED_UPDATE,
107107
' ':FAST_FORWARD,
108-
'=':UP_TO_DATE,
108+
'=':UP_TO_DATE,
109109
'!':ERROR}
110110

111111
def__init__(self,flags,local_ref,remote_ref_string,remote,old_commit=None,
@@ -208,11 +208,11 @@ class FetchInfo(object):
208208
# %c %-*s %-*s -> %s (%s)
209209
re_fetch_result=re.compile("^\s*(.) (\[?[\w\s\.]+\]?)\s+(.+) -> ([/\w_\+\.\-#]+)( \(.*\)?$)?")
210210

211-
_flag_map= {'!':ERROR,
212-
'+':FORCED_UPDATE,
213-
'-':TAG_UPDATE,
211+
_flag_map= {'!':ERROR,
212+
'+':FORCED_UPDATE,
213+
'-':TAG_UPDATE,
214214
'*':0,
215-
'=':HEAD_UPTODATE,
215+
'=':HEAD_UPTODATE,
216216
' ':FAST_FORWARD}
217217

218218
def__init__(self,ref,flags,note='',old_commit=None):
@@ -526,8 +526,8 @@ def _get_fetch_info_from_stderr(self, proc, progress):
526526
# this also waits for the command to finish
527527
# Skip some progress lines that don't provide relevant information
528528
fetch_info_lines=list()
529-
# Basically we want all fetch info lines which appear to be in regular form, and thus have a
530-
# command character. Everything else we ignore,
529+
# Basically we want all fetch info lines which appear to be in regular form, and thus have a
530+
# command character. Everything else we ignore,
531531
cmds=set(PushInfo._flag_map.keys())&set(FetchInfo._flag_map.keys())
532532
forlineindigest_process_messages(proc.stderr,progress):
533533
ifline.startswith('fatal:'):
@@ -547,8 +547,8 @@ def _get_fetch_info_from_stderr(self, proc, progress):
547547
fp.close()
548548

549549
# NOTE: We assume to fetch at least enough progress lines to allow matching each fetch head line with it.
550-
assertlen(fetch_info_lines)>=len(fetch_head_info),"len(%s) <= len(%s)"% (fetch_head_info,
551-
fetch_info_lines)
550+
assertlen(fetch_info_lines)>=len(fetch_head_info),"len(%s) <= len(%s)"% (fetch_head_info,
551+
fetch_info_lines)
552552

553553
output.extend(FetchInfo._from_line(self.repo,err_line,fetch_line)
554554
forerr_line,fetch_lineinzip(fetch_info_lines,fetch_head_info))

‎git/test/lib/helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def remote_repo_creator(self):
196196
time.sleep(0.5)
197197
exceptExceptionaserr:
198198
gd=None
199-
# end
199+
# end
200200

201201
# try to list remotes to diagnoes whether the server is up
202202
try:

‎git/test/performance/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-

‎git/test/performance/lib.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,14 @@ def setUp(self):
4949

5050
repo_path=os.environ.get(k_env_git_repo)
5151
ifrepo_pathisNone:
52-
logging.info("You can set the %s environment variable to a .git repository of your choice - defaulting to the gitpython repository",k_env_git_repo)
52+
logging.info(
53+
"You can set the %s environment variable to a .git repository of your choice - defaulting to the gitpython repository",k_env_git_repo)
5354
repo_path=os.path.dirname(__file__)
5455
# end set some repo path
5556
self.gitrorepo=Repo(repo_path,odbt=GitCmdObjectDB)
5657
self.puregitrorepo=Repo(repo_path,odbt=GitDB)
5758

59+
5860
classTestBigRepoRW(TestBigRepoR):
5961

6062
"""As above, but provides a big repository that we can write to.

‎git/test/test_index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def test_index_merge_tree(self, rw_repo):
216216

217217
# if missing objects are okay, this would work though ( they are always okay now )
218218
# As we can't read back the tree with NULL_SHA, we rather set it to something else
219-
index.entries[manifest_key]=IndexEntry(manifest_entry[:1]+ (hex_to_bin('f'*40),)+manifest_entry[2:])
219+
index.entries[manifest_key]=IndexEntry(manifest_entry[:1]+ (hex_to_bin('f'*40),)+manifest_entry[2:])
220220
tree=index.write_tree()
221221

222222
# now make a proper three way merge with unmerged entries

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp