Mercurial > public > mercurial-scm > hg
comparison mercurial/pure/osutil.py @ 8232:823f25b25dea
pure/osutil: add copyright and license header
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Sun, 26 Apr 2009 01:57:12 +0200 |
parents | 30d1d313370b |
children | b6d0fa8c7685 |
comparison
equal
deleted
inserted
replaced
8231:5d4d88a4f5e6 | 8232:823f25b25dea |
---|---|
1 # osutil.py - pure Python version of osutil.c | |
2 # | |
3 # Copyright 2009 Matt Mackall <mpm@selenic.com> and others | |
4 # | |
5 # This software may be used and distributed according to the terms of the | |
6 # GNU General Public License version 2, incorporated herein by reference. | |
7 | |
1 import os | 8 import os |
2 import stat as _stat | 9 import stat as _stat |
3 | 10 |
4 def _mode_to_kind(mode): | 11 def _mode_to_kind(mode): |
5 if _stat.S_ISREG(mode): return _stat.S_IFREG | 12 if _stat.S_ISREG(mode): return _stat.S_IFREG |