[Python-checkins] r80837 - python/trunk/Lib/shutil.py

tarek.ziade python-checkins at python.org
Thu May 6 00:41:25 CEST 2010


Author: tarek.ziade
Date: Thu May  6 00:41:25 2010
New Revision: 80837

Log:
removed non needed lines

Modified:
   python/trunk/Lib/shutil.py

Modified: python/trunk/Lib/shutil.py
==============================================================================
--- python/trunk/Lib/shutil.py	(original)
+++ python/trunk/Lib/shutil.py	Thu May  6 00:41:25 2010
@@ -67,8 +67,6 @@
     if _samefile(src, dst):
         raise Error("`%s` and `%s` are the same file" % (src, dst))
 
-    fsrc = None
-    fdst = None
     for fn in [src, dst]:
         try:
             st = os.stat(fn)
@@ -79,6 +77,7 @@
             # XXX What about other special files? (sockets, devices...)
             if stat.S_ISFIFO(st.st_mode):
                 raise SpecialFileError("`%s` is a named pipe" % fn)
+
     with open(src, 'rb') as fsrc:
         with open(dst, 'wb') as fdst:
             copyfileobj(fsrc, fdst)


More information about the Python-checkins mailing list