Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.019 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; '(at': 0.04; 'syntax': 0.04; 'arguments': 0.09; 'arguments,': 0.09; 'imply': 0.09; 'cc:addr:python-list': 0.11; '*function*': 0.16; 'above?': 0.16; 'accepts': 0.16; 'comma,': 0.16; 'did,': 0.16; 'least)': 0.16; 'syntactical': 0.16; 'two.': 0.16; 'wrote:': 0.18; 'all,': 0.19; 'cc:addr:python.org': 0.22; 'error': 0.23; 'errors.': 0.24; 'cc:2**0': 0.24; 'source': 0.25; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'specifically': 0.29; "i'm": 0.30; 'url:mailman': 0.30; 'code': 0.31; 'usually': 0.31; 'another': 0.32; 'url:python': 0.33; 'subject:from': 0.34; 'subject: (': 0.35; "can't": 0.35; 'received:google.com': 0.35; 'right?': 0.36; 'url:listinfo': 0.36; 'url:org': 0.36; 'reports': 0.37; 'message- id:@gmail.com': 0.38; 'url:mail': 0.40; 'how': 0.40; '2nd': 0.60; 'introduced': 0.61; 'matter': 0.61; 'header:Message-Id:1': 0.63; '8bit%:95': 0.64; 'to:addr:gmail.com': 0.65; 'line,': 0.68; '8bit%:92': 0.71; '8bit%:100': 0.72; '1st': 0.74; 'received:192.168.0.5': 0.84; '2013,': 0.91; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:mime-version:in-reply-to:content-type :content-transfer-encoding:message-id:cc:x-mailer:from:subject:date :to; bh=Z6QLe0WUJwDa+bF8PP+klarQKTWMPgKU1UtuQ3hNN5o=; b=fXN5ZEsQVFRIVaX1YVIG8SP5YVkQ+pMyB0BKEm0tsrfszRT4cuXQJV/eqhS4u79W1/ 5WC5ABektJDh6hasqVi9VINE5RtFY01Cwlt9Y4DbHrFJcNhZk7ubbeMoQh3pOUsH7YIl JVbYGY4mKACLV0a3PZuaNbJjV45j5q8FPSYm/W77nRutbLq6drmoaSmcfHoBNPpajKjQ FJ8dd7SjRjzYJYG2HZp5kRQXVOZ5cSUvr8BaX4c9S27qWtQe2fR3PRSXugEdY2Sud+RH fpaEUDGNdIJ+S8E2A6kNDvwyv6eIh0C1s7zEQmEeNCh5hms5qhg/XcrpjSSwWlPJNMyH Ns9w== X-Received: by 10.194.171.130 with SMTP id au2mr3419805wjc.90.1370590965969; Fri, 07 Jun 2013 00:42:45 -0700 (PDT) References: <2c425f2b-99de-4453-964e-c585f2043f71@googlegroups.com> <9c482ba0-23ac-4e66-a0e1-a18be9fd82d8@googlegroup> <06a19483-65df-4fcd-9430-b45a01c9dbab@googlegroups.com> <51aed313$0$11118$c3e8da3@news.astraweb.com> <4c19b71d-4de5-41ad-b6ae-fb133a6c331e@googlegroups.com> <2be143c4-77c6-4c84-ba1c-46b02bd503ff@googlegroups.com> <1465c96b-c33e-4d5b-894e-b184c031a185@googlegroups.com> <808b7897-8ed4-4e0e-8976-4a22ae7f24cd@googlegroups.com> <332812d7-71b3-4bbb-a846-09827a6df65d@googlegroups.com> <152c78f5-b777-44e2-a83d-a23ecf2f84a3@googlegroups.com> <51b13693$0$29966$c3e8da3$5496439d@news.astraweb.com> <3c1e7a3f-5e41-4ab8-bced-755a9ad6327d@googlegroups.com> <9204ec80-a272-4733-aabe-1e319a0c7add@googlegroups.com> Mime-Version: 1.0 (1.0) In-Reply-To: <9204ec80-a272-4733-aabe-1e319a0c7add@googlegroups.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailer: iPad Mail (10B329) From: Michael Weylandt Subject: Re: Changing filenames from Greeklish => Greek (subprocess complain) Date: Fri, 7 Jun 2013 08:42:43 +0100 To: =?utf-8?B?zp3Ouc66z4zOu86xzr/PgiDOms6/z43Pgc6xz4I=?= Cc: "python-list@python.org" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 36 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1370590974 news.xs4all.nl 15947 [2001:888:2000:d::a6]:50229 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:47316 On Jun 7, 2013, at 8:32, =CE=9D=CE=B9=CE=BA=CF=8C=CE=BB=CE=B1=CE=BF=CF=82 =CE= =9A=CE=BF=CF=8D=CF=81=CE=B1=CF=82 wrote: > =CE=A4=CE=B7 =CE=A0=CE=B1=CF=81=CE=B1=CF=83=CE=BA=CE=B5=CF=85=CE=AE, 7 =CE= =99=CE=BF=CF=85=CE=BD=CE=AF=CE=BF=CF=85 2013 10:09:29 =CF=80.=CE=BC. UTC+3, =CE= =BF =CF=87=CF=81=CE=AE=CF=83=CF=84=CE=B7=CF=82 Lele Gaifax =CE=AD=CE=B3=CF=81= =CE=B1=CF=88=CE=B5: >=20 >> As already explained, often a SyntaxError is introduced by *preceeding* >> "text", so you must look at your code with a "wider eye". >=20 > That what i ahte aabout error reporting. You have some syntax error somepl= ace and error reports you another line, so you have to check the whole code a= gain. > Well i just did, i see no syntactical errors. >=20 >> Yes: and that usually imply that the *function* accepts (at least) *two* >> arguments, specifically the source and the target names, right? How many >> arguments are you actually giving to the os.rename() function above? >=20 > i'm giving it two. > os.rename( filepath_bytes filepath.encode('utf-8')=20 Missing comma, which is, after all, just a matter of syntax so it can't matt= er, right? >=20 > 1st =3D filepath_bytes > 2nd =3D filepath.encode('utf-8') >=20 > Source and Target respectively. > --=20 > http://mail.python.org/mailman/listinfo/python-list