diff options
author | Chris Lumens <clumens@redhat.com> | 2006-03-30 18:06:41 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2006-03-30 18:06:41 +0000 |
commit | b12c89deed26132b45302d048c92f1a71395efc4 (patch) | |
tree | bcd02b80200e8c4abf716f2eb6d05cd0dad66ccc /timezone.py | |
parent | e6015c01be9bc42e85545c94f757f1efe4fb6a1a (diff) | |
download | anaconda-b12c89deed26132b45302d048c92f1a71395efc4.tar.gz anaconda-b12c89deed26132b45302d048c92f1a71395efc4.tar.xz anaconda-b12c89deed26132b45302d048c92f1a71395efc4.zip |
Fix some deprecation warnings.
Diffstat (limited to 'timezone.py')
-rw-r--r-- | timezone.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/timezone.py b/timezone.py index ee8dfcd87..d63fcfb50 100644 --- a/timezone.py +++ b/timezone.py @@ -11,6 +11,7 @@ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # +import shutil import iutil from flags import flags @@ -37,7 +38,7 @@ class Timezone: fromFile = instPath + "/usr/share/zoneinfo/" + self.tz try: - iutil.copyFile(fromFile, instPath + "/etc/localtime") + shutil.copyfile(fromFile, instPath + "/etc/localtime") except OSError, (errno, msg): log.error("Error copying timezone (from %s): %s" % (fromFile, msg)) |