|
@@ -1,4 +1,4 @@
|
|
|
-#!/usr/bin/env python
|
|
|
+#!/usr/bin/env python3
|
|
|
# Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
# found in the LICENSE file.
|
|
@@ -71,8 +71,8 @@ def main():
|
|
|
|
|
|
# We want to use the full path for testing, but we want to use the relative
|
|
|
# path for display.
|
|
|
- fulldirs = map(lambda(p): os.path.normpath(os.path.join(root, p)), raw)
|
|
|
- reldirs = map(lambda(p): re.sub('^' + base, '.', p), raw)
|
|
|
+ fulldirs = [os.path.normpath(os.path.join(root, p)) for p in raw]
|
|
|
+ reldirs = [re.sub('^' + base, '.', p) for p in raw]
|
|
|
|
|
|
for full_path, relative_path in zip(fulldirs, reldirs):
|
|
|
show_dir(full_path, relative_path, color)
|