equal
deleted
inserted
replaced
2021 """ |
2021 """ |
2022 pos = 0 |
2022 pos = 0 |
2023 try: |
2023 try: |
2024 pos = lr.fp.tell() |
2024 pos = lr.fp.tell() |
2025 fp = lr.fp |
2025 fp = lr.fp |
2026 except IOError: |
2026 except OSError: |
2027 fp = stringio(lr.fp.read()) |
2027 fp = stringio(lr.fp.read()) |
2028 gitlr = linereader(fp) |
2028 gitlr = linereader(fp) |
2029 gitlr.push(firstline) |
2029 gitlr.push(firstline) |
2030 gitpatches = readgitpatch(gitlr) |
2030 gitpatches = readgitpatch(gitlr) |
2031 fp.seek(pos) |
2031 fp.seek(pos) |