Fix typos and trailing spaces

This commit is contained in:
Laurent Bachelier 2011-05-03 00:13:26 +02:00 committed by Romain Bignon
commit 904c9ff5f9

View file

@ -17,7 +17,6 @@
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
import subprocess
import sys import sys
import os import os
from re import search, sub from re import search, sub
@ -144,7 +143,7 @@ class Galleroob(ReplApplication):
with open(name, 'w') as f: with open(name, 'w') as f:
f.write(img.data) f.write(img.data)
os.chdir("..") os.chdir(os.path.pardir)
def do_info(self, line): def do_info(self, line):
""" """
@ -156,7 +155,7 @@ class Galleroob(ReplApplication):
gallery = self.get_object(_id, 'get_gallery') gallery = self.get_object(_id, 'get_gallery')
if not gallery: if not gallery:
print >>sys.gallery, 'Gallery not found: %s' % _id print >>sys.stderr, 'Gallery not found: %s' % _id
return return
self.format(gallery) self.format(gallery)
self.flush() self.flush()