FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Development

 
 
LinkBack Thread Tools
 
Old 04-22-2011, 08:31 AM
Ales Kozumplik
 
Default iutil: remove excess imports.

---
pyanaconda/iutil.py | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/pyanaconda/iutil.py b/pyanaconda/iutil.py
index a004ae0..139d61d 100644
--- a/pyanaconda/iutil.py
+++ b/pyanaconda/iutil.py
@@ -24,13 +24,12 @@ import glob
import os, string, stat, sys
import signal
import os.path
-from errno import *
-import warnings
+import errno
import subprocess
+import threading
+
from flags import flags
from constants import *
-import re
-import threading

import gettext
_ = lambda x: gettext.ldgettext("anaconda", x)
@@ -468,7 +467,7 @@ def mkdirChain(dir):
os.makedirs(dir, 0755)
except OSError as e:
try:
- if e.errno == EEXIST and stat.S_ISDIR(os.stat(dir).st_mode):
+ if e.errno == errno.EEXIST and stat.S_ISDIR(os.stat(dir).st_mode):
return
except OSError:
pass
--
1.7.3.3

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 06:23 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org