summaryrefslogtreecommitdiffstats
path: root/timezone.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2006-03-30 18:06:41 +0000
committerChris Lumens <clumens@redhat.com>2006-03-30 18:06:41 +0000
commitb12c89deed26132b45302d048c92f1a71395efc4 (patch)
treebcd02b80200e8c4abf716f2eb6d05cd0dad66ccc /timezone.py
parente6015c01be9bc42e85545c94f757f1efe4fb6a1a (diff)
downloadanaconda-b12c89deed26132b45302d048c92f1a71395efc4.tar.gz
anaconda-b12c89deed26132b45302d048c92f1a71395efc4.tar.xz
anaconda-b12c89deed26132b45302d048c92f1a71395efc4.zip
Fix some deprecation warnings.
Diffstat (limited to 'timezone.py')
-rw-r--r--timezone.py3
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))