Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/posix.py @ 17391:fc24c10424d2 stable
util: replace util.nulldev with os.devnull
Python since 2.4 has supported os.devnull so having util.nulldev
is unnecessary.
author | Ross Lagerwall <rosslagerwall@gmail.com> |
---|---|
date | Sat, 04 Aug 2012 07:14:40 +0200 |
parents | 0cb55b5c19a3 |
children | 9ee25d7b1aed |
comparison
equal
deleted
inserted
replaced
17389:59581b667cd7 | 17391:fc24c10424d2 |
---|---|
8 from i18n import _ | 8 from i18n import _ |
9 import encoding | 9 import encoding |
10 import os, sys, errno, stat, getpass, pwd, grp, tempfile, unicodedata | 10 import os, sys, errno, stat, getpass, pwd, grp, tempfile, unicodedata |
11 | 11 |
12 posixfile = open | 12 posixfile = open |
13 nulldev = '/dev/null' | |
14 normpath = os.path.normpath | 13 normpath = os.path.normpath |
15 samestat = os.path.samestat | 14 samestat = os.path.samestat |
16 oslink = os.link | 15 oslink = os.link |
17 unlink = os.unlink | 16 unlink = os.unlink |
18 rename = os.rename | 17 rename = os.rename |