Port gnome-shell to Python 3
https://bugzilla.gnome.org/show_bug.cgi?id=732478
This commit is contained in:

committed by
Bastien Nocera

parent
568454abb8
commit
be3c3c64c1
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/python
|
||||
#!/usr/bin/python3
|
||||
#
|
||||
# This is a simple script that we use to check for files in git
|
||||
# and not in the distribution. It was previously written in shell
|
||||
@ -16,10 +16,10 @@ os.chdir(srcdir)
|
||||
|
||||
status=0
|
||||
for f in subprocess.Popen(["git", "ls-files"], stdout=subprocess.PIPE).stdout:
|
||||
f = f.strip()
|
||||
f = f.decode('utf-8').strip()
|
||||
if (not os.path.exists(os.path.join(distdir, f)) and
|
||||
not any((fnmatch.fnmatch(f, p) for p in excludes))):
|
||||
print "File missing from distribution:", f
|
||||
print("File missing from distribution:", f)
|
||||
status=1
|
||||
|
||||
sys.exit(status)
|
||||
|
Reference in New Issue
Block a user