]> granicus.if.org Git - python/commitdiff
removed non needed lines
authorTarek Ziadé <ziade.tarek@gmail.com>
Wed, 5 May 2010 22:41:25 +0000 (22:41 +0000)
committerTarek Ziadé <ziade.tarek@gmail.com>
Wed, 5 May 2010 22:41:25 +0000 (22:41 +0000)
Lib/shutil.py

index f02a2d9e7069c9c9fe855e732ac7f57e75405760..1d86df36c26b129b7beae2d52ac276e6b30f7341 100644 (file)
@@ -67,8 +67,6 @@ def copyfile(src, dst):
     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 @@ def copyfile(src, dst):
             # 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)