diff options
author | Agustin Zubiaga <aguz@sugarlabs.org> | 2012-10-27 16:21:46 (GMT) |
---|---|---|
committer | Agustin Zubiaga <aguz@sugarlabs.org> | 2012-10-27 16:21:46 (GMT) |
commit | deeff1aadcde25b0d3ccbe609f885ec4943fc5a0 (patch) | |
tree | 9e814e901f75de6fb9092473b1aa1819ad748640 /ImageViewerActivity.py | |
parent | 453f7a4d7b92d8be66c9002d2eaef521b71c944a (diff) |
pylint fixes
Signed-off-by: Agustin Zubiaga <aguz@sugarlabs.org>
Diffstat (limited to 'ImageViewerActivity.py')
-rw-r--r-- | ImageViewerActivity.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ImageViewerActivity.py b/ImageViewerActivity.py index cf3679f..0c51699 100644 --- a/ImageViewerActivity.py +++ b/ImageViewerActivity.py @@ -199,7 +199,7 @@ class ImageViewerActivity(activity.Activity): self.is_received_document = False - if self.shared_activity and handle.object_id == None: + if self.shared_activity and handle.object_id is None: # We're joining, and we don't already have the document. if self.get_shared(): # Already joined for some reason, just get the document @@ -339,7 +339,7 @@ class ImageViewerActivity(activity.Activity): def read_file(self, file_path): self._want_document = False - tempfile = os.path.join(self.get_activity_root(), 'instance', \ + tempfile = os.path.join(self.get_activity_root(), 'instance', 'tmp%i' % time.time()) os.link(file_path, tempfile) |