Show More
@@ -77,8 +77,6 b' from i18n import _' | |||
|
77 | 77 | _calcsize = struct.calcsize |
|
78 | 78 | propertycache = util.propertycache |
|
79 | 79 | |
|
80 | _SEEK_END = 2 # os.SEEK_END was introduced in Python 2.5 | |
|
81 | ||
|
82 | 80 | # the obsolete feature is not mature enough to be enabled by default. |
|
83 | 81 | # you have to rely on third party extension extension to enable this. |
|
84 | 82 | _enabled = False |
@@ -592,12 +590,6 b' class obsstore(object):' | |||
|
592 | 590 | if new: |
|
593 | 591 | f = self.sopener('obsstore', 'ab') |
|
594 | 592 | try: |
|
595 | # Whether the file's current position is at the begin or at | |
|
596 | # the end after opening a file for appending is implementation | |
|
597 | # defined. So we must seek to the end before calling tell(), | |
|
598 | # or we may get a zero offset for non-zero sized files on | |
|
599 | # some platforms (issue3543). | |
|
600 | f.seek(0, _SEEK_END) | |
|
601 | 593 | offset = f.tell() |
|
602 | 594 | transaction.add('obsstore', offset) |
|
603 | 595 | # offset == 0: new file - add the version header |
General Comments 0
You need to be logged in to leave comments.
Login now