Kiln » Dependencies » Dulwich Read More
Clone URL:  
Pushed to one repository · View In Graph Contained in master

Fix compatibilithy with Python 2.4.

Changeset b1f375b8b255

Parent 11e4b3d18288

committed by Jelmer Vernooij

authored by David Carr

Changes to 2 files · Browse files at b1f375b8b255 Showing diff from parent 11e4b3d18288 Diff from another changeset...

Change 1 of 1 Show Entire File NEWS Stacked
 
4
5
6
 
 
7
8
9
 
4
5
6
7
8
9
10
11
@@ -4,6 +4,8 @@
    * Fix use of alternates in ``DiskObjectStore``.{__contains__,__iter__}.   (Dmitriy) + + * Fix compatibility with Python 2.4. (David Carr)    0.8.6 2012-11-09  
Change 1 of 1 Show Entire File dulwich/​repo.py Stacked
 
1243
1244
1245
1246
 
 
1247
 
 
1248
1249
1250
 
1243
1244
1245
 
1246
1247
1248
1249
1250
1251
1252
1253
@@ -1243,8 +1243,11 @@
  self._controldir = root   elif (os.path.isfile(os.path.join(root, ".git"))):   import re - with open(os.path.join(root, ".git"), 'r') as f: + f = open(os.path.join(root, ".git"), 'r') + try:   _, path = re.match('(gitdir: )(.+$)', f.read()).groups() + finally: + f.close()   self.bare = False   self._controldir = os.path.join(root, path)   else: