Ticket #10372: 10372.diff
File 10372.diff, 735 bytes (added by , 16 years ago) |
---|
-
django/utils/version.py
19 19 path = django.__path__[0] 20 20 entries_path = '%s/.svn/entries' % path 21 21 22 if os.path.exists(entries_path): 23 entries = open(entries_path, 'r').read() 22 try: 23 if os.path.exists(entries_path): 24 entries = open(entries_path, 'r').read() 25 except IOError: 26 pass 27 else: 24 28 # Versions >= 7 of the entries file are flat text. The first line is 25 29 # the version number. The next set of digits after 'dir' is the revision. 26 30 if re.match('(\d+)', entries):