From f7b892905c62b94a6e54d115ee2d6d32d66af013 Mon Sep 17 00:00:00 2001 From: "Jeremy T. Bouse" Date: Fri, 27 Nov 2009 16:25:55 -0500 Subject: Imported Upstream version 1.7.6 Closes: #543784 --- docs/paramiko.sftp_attr-pysrc.html | 50 +++++++++++++++++++------------------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'docs/paramiko.sftp_attr-pysrc.html') diff --git a/docs/paramiko.sftp_attr-pysrc.html b/docs/paramiko.sftp_attr-pysrc.html index b1f7411..b1a55b1 100644 --- a/docs/paramiko.sftp_attr-pysrc.html +++ b/docs/paramiko.sftp_attr-pysrc.html @@ -54,24 +54,24 @@

Source Code for Module paramiko.sftp_attr

-  1  # Copyright (C) 2003-2006 Robey Pointer <robey@lag.net> 
-  2  # 
-  3  # This file is part of paramiko. 
-  4  # 
-  5  # Paramiko is free software; you can redistribute it and/or modify it under the 
-  6  # terms of the GNU Lesser General Public License as published by the Free 
-  7  # Software Foundation; either version 2.1 of the License, or (at your option) 
-  8  # any later version. 
-  9  # 
- 10  # Paramiko is distrubuted in the hope that it will be useful, but WITHOUT ANY 
- 11  # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 
- 12  # A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more 
- 13  # details. 
- 14  # 
- 15  # You should have received a copy of the GNU Lesser General Public License 
- 16  # along with Paramiko; if not, write to the Free Software Foundation, Inc., 
- 17  # 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA. 
- 18   
+  1  # Copyright (C) 2003-2006 Robey Pointer <robeypointer@gmail.com> 
+  2  # 
+  3  # This file is part of paramiko. 
+  4  # 
+  5  # Paramiko is free software; you can redistribute it and/or modify it under the 
+  6  # terms of the GNU Lesser General Public License as published by the Free 
+  7  # Software Foundation; either version 2.1 of the License, or (at your option) 
+  8  # any later version. 
+  9  # 
+ 10  # Paramiko is distrubuted in the hope that it will be useful, but WITHOUT ANY 
+ 11  # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 
+ 12  # A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more 
+ 13  # details. 
+ 14  # 
+ 15  # You should have received a copy of the GNU Lesser General Public License 
+ 16  # along with Paramiko; if not, write to the Free Software Foundation, Inc., 
+ 17  # 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA. 
+ 18   
  19  import  88   
  89   
  90      ###  internals... 
- 91   
+ 91   
  92       
 
93 - def _from_msg(cls, msg, filename=None, longname=None):
94 attr = cls() @@ -198,7 +198,7 @@ paramiko.SFTPServerInterface.stat" class="py-name" href="#" onclick="return docl 139 msg.add_int(self.st_mode) 140 if self._flags & self.FLAG_AMTIME: 141 # throw away any fractional seconds -142 msg.add_int(long(self.st_atime)) +142 msg.add_int(long(self.st_atime)) 143 msg.add_int(long(self.st_mtime)) 144 if self._flags & self.FLAG_EXTENDED: 145 msg.add_int(len(self.attr)) @@ -292,19 +292,19 @@ paramiko.SFTPServerInterface.stat" class="py-name" href="#" onclick="return docl 200 else: 201 ks = '?---------' 202 # compute display date -203 if (self.st_mtime is None) or (self.st_mtime == 0xffffffff): +203 if (self.st_mtime is None) or (self.st_mtime == 0xffffffff): 204 # shouldn't really happen -205 datestr = '(unknown date)' +205 datestr = '(unknown date)' 206 else: 207 if abs(time.time() - self.st_mtime) > 15552000: 208 # (15552000 = 6 months) -209 datestr = time.strftime('%d %b %Y', time.localtime(self.st_mtime)) +209 datestr = time.strftime('%d %b %Y', time.localtime(self.st_mtime)) 210 else: 211 datestr = time.strftime('%d %b %H:%M', time.localtime(self.st_mtime)) 212 filename = getattr(self, 'filename', '?') 213 214 # not all servers support uid/gid -215 uid = self.st_uid +215 uid = self.st_uid 216 gid = self.st_gid 217 if uid is None: 218 uid = 0 @@ -345,7 +345,7 @@ expandto(location.href);