Mercurial > hgrepos > DevTools > mercurial-extensions
diff read_revinfo.py @ 17:bfb7cad85467
Shortened some lines
| author | Franz Glasner <hg@dom66.de> |
|---|---|
| date | Sun, 27 Sep 2015 14:31:57 +0200 |
| parents | e0f9f80704a1 |
| children |
line wrap: on
line diff
--- a/read_revinfo.py Sun Sep 27 14:28:21 2015 +0200 +++ b/read_revinfo.py Sun Sep 27 14:31:57 2015 +0200 @@ -20,7 +20,7 @@ try: f = open(filename, "rt") try: - return dict([[i.strip() for i in line.split(":", 1)] for line in f]) + return dict([[i.strip() for i in l.split(":", 1)] for l in f]) finally: f.close() except EnvironmentError: @@ -38,7 +38,7 @@ f = open(filename, "rt") try: rv = {} - for k, v in [[i.strip() for i in line.split(":", 1)] for line in f]: + for k, v in [[i.strip() for i in l.split(":", 1)] for l in f]: if k == "path": try: rv[k].append(v)
