Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
python-defaults
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pkg
python-defaults
Commits
75b0f9c0
Commit
75b0f9c0
authored
12 years ago
by
Piotr Ożarowski
Browse files
Options
Downloads
Patches
Plain Diff
dh_python2: ignore empty files while trying to normalize shebangs
parent
044869f9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
debian/changelog
+1
-0
1 addition, 0 deletions
debian/changelog
debpython/tools.py
+3
-0
3 additions, 0 deletions
debpython/tools.py
with
4 additions
and
0 deletions
debian/changelog
+
1
−
0
View file @
75b0f9c0
...
...
@@ -2,6 +2,7 @@ python-defaults (2.7.3-2) UNRELEASED; urgency=low
* dist_fallback: add python-imaging (which wasn't recognized before due to
.pth file)
* dh_python2: ignore empty files while trying to normalize shebangs
-- Piotr Ożarowski <piotr@debian.org> Fri, 06 Jul 2012 23:03:32 +0200
...
...
This diff is collapsed.
Click to expand it.
debpython/tools.py
+
3
−
0
View file @
75b0f9c0
...
...
@@ -100,6 +100,9 @@ def fix_shebang(fpath, replacement=None):
try
:
with
open
(
fpath
)
as
fp
:
fcontent
=
fp
.
readlines
()
if
not
fcontent
:
log
.
debug
(
'
fix_shebang: ignoring empty file: %s
'
,
fpath
)
return
None
except
IOError
:
log
.
error
(
'
cannot open %s
'
,
fpath
)
return
False
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment