Selaa lähdekoodia

Minor updates

Andrej Studen @ Win7 6 vuotta sitten
vanhempi
commit
76f0fb5a9d
1 muutettua tiedostoa jossa 8 lisäystä ja 8 poistoa
  1. 8 8
      labkeySlicerPythonExtension/slicerNetwork.py

+ 8 - 8
labkeySlicerPythonExtension/slicerNetwork.py

@@ -78,15 +78,15 @@ class labkeyURIHandler(slicer.vtkURIHandler):
                 raise
                 raise
         local=open(dest,'wb')
         local=open(dest,'wb')
         #make sure we are at the begining of the file
         #make sure we are at the begining of the file
-        
-	#check file size
-	remote.seek(0,2)
-	sz=remote.tell()
-	print "Remote size: {0}".format(sz)
-	
-	remote.seek(0)
+
+	    #check file size
+	    remote.seek(0,2)
+	    sz=remote.tell()
+	    print "Remote size: {0}".format(sz)
+
+	    remote.seek(0)
         shutil.copyfileobj(remote,local)
         shutil.copyfileobj(remote,local)
-	print "Local size: {0}".format(local.tell())
+	    print "Local size: {0}".format(local.tell())
         local.close()
         local.close()
 
 
     def StageFileWrite(self,source,dest):
     def StageFileWrite(self,source,dest):