Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Gentoo Development (http://www.linux-archive.org/gentoo-development/)
-   -   iutil: remove excess imports. (http://www.linux-archive.org/gentoo-development/517163-iutil-remove-excess-imports.html)

Ales Kozumplik 04-22-2011 08:31 AM

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


All times are GMT. The time now is 09:31 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.