Browse Source

when repr, use an repr'd version of the path so that we don't try

to ascii print 8bit chars for path...

add a commented out print line..

[git-p4: depot-paths = "//depot/": change = 1670]
main
John-Mark Gurney 12 years ago
parent
commit
18286d1327
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      FSStorage.py

+ 3
- 1
FSStorage.py View File

@@ -6,6 +6,7 @@ __version__ = '$Change$'

ffmpeg_path = '/a/home/jmg/src/ffmpeg/ffmpeg'
ffmpeg_path = '/usr/local/bin/ffmpeg'
ffmpeg_path = '/a/home/jmg/src/ffmpeg.tmp/ffmpeg'

import FileDIDL
import errno
@@ -63,6 +64,7 @@ class FSObject(object):
# push it up? but still need to handle disappearing
try:
nstat = os.stat(self.FSpath)
#print 'cU:', `self`, `self.pstat`, `nstat`, statcmp(self.pstat, nstat)
if statcmp(self.pstat, nstat):
return

@@ -80,7 +82,7 @@ class FSObject(object):
def __repr__(self):
return '<%s.%s: path: %s, id: %s, parent: %s, title: %s>' % \
(self.__class__.__module__, self.__class__.__name__,
self.FSpath, self.id, self.parentID, self.title)
`self.FSpath`, self.id, self.parentID, `self.title`)

class NullConsumer(file, abstract.FileDescriptor):
implements(interfaces.IConsumer)


Loading…
Cancel
Save