Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
喜羊羊3508
Dak
提交
262e0777
D
Dak
项目概览
喜羊羊3508
/
Dak
9 个月 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Dak
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
262e0777
编写于
8月 27, 2015
作者:
N
Niels Thykier
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
generate_releases: Remove unneeded .keys() calls
Signed-off-by:
N
Niels Thykier
<
niels@thykier.net
>
上级
efb8b688
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
4 addition
and
4 deletion
+4
-4
dak/generate_releases.py
dak/generate_releases.py
+4
-4
未找到文件。
dak/generate_releases.py
浏览文件 @
262e0777
...
...
@@ -246,11 +246,11 @@ class ReleaseWriter(object):
# If we find a file for which we have a compressed version and
# haven't yet seen the uncompressed one, store the possibility
# for future use
if
entry
.
endswith
(
".gz"
)
and
entry
[:
-
3
]
not
in
uncompnotseen
.
keys
()
:
if
entry
.
endswith
(
".gz"
)
and
entry
[:
-
3
]
not
in
uncompnotseen
:
uncompnotseen
[
filename
[:
-
3
]]
=
(
gzip
.
GzipFile
,
filename
)
elif
entry
.
endswith
(
".bz2"
)
and
entry
[:
-
4
]
not
in
uncompnotseen
.
keys
()
:
elif
entry
.
endswith
(
".bz2"
)
and
entry
[:
-
4
]
not
in
uncompnotseen
:
uncompnotseen
[
filename
[:
-
4
]]
=
(
bz2
.
BZ2File
,
filename
)
elif
entry
.
endswith
(
".xz"
)
and
entry
[:
-
3
]
not
in
uncompnotseen
.
keys
()
:
elif
entry
.
endswith
(
".xz"
)
and
entry
[:
-
3
]
not
in
uncompnotseen
:
uncompnotseen
[
filename
[:
-
3
]]
=
(
XzFile
,
filename
)
fileinfo
[
filename
][
'len'
]
=
len
(
contents
)
...
...
@@ -261,7 +261,7 @@ class ReleaseWriter(object):
for
filename
,
comp
in
uncompnotseen
.
items
():
# If we've already seen the uncompressed file, we don't
# need to do anything again
if
filename
in
fileinfo
.
keys
()
:
if
filename
in
fileinfo
:
continue
fileinfo
[
filename
]
=
{}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录