Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.028 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'output': 0.04; 'cc:addr :python-list': 0.10; 'subject:error': 0.11; 'subject:python': 0.11; '.py': 0.16; 'sees': 0.16; 'subject:when': 0.16; 'wrote:': 0.17; 'fix': 0.17; 'thu,': 0.17; 'email addr:gmail.com>': 0.20; 'cc:2**0': 0.23; 'this:': 0.23; 'header': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'appear': 0.26; 'am,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'fixed': 0.28; 'fine': 0.28; 'cgi': 0.29; 'url:mailman': 0.29; 'skip:& 10': 0.29; 'source': 0.29; 'stuff': 0.30; 'code': 0.31; 'url:python': 0.32; 'file': 0.32; 'print': 0.32; 'url:listinfo': 0.32; 'received:google.com': 0.34; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'except': 0.36; 'url:org': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'files': 0.38; 'page': 0.38; 'skip:" 10': 0.40; 'url:mail': 0.40; 'your': 0.60; 'first': 0.61; 'click': 0.76; '2013': 0.84; 'text/html;': 0.84; 'joel': 0.91; 'this!': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=u25HZ7pTc9Cit2XdaHC33ty2MSQQ1IlCnEbdcOdKcQs=; b=NYgpdayeOlo0qrhyEtHCmBCK1swRoKTywRzZAXQkn7Wyw+s89+vvPI++/N0NKeIw6c 2dfh+z17cVkvyXRwFki3BVfgJ1NgJl4McxsLkbAULnkbColZA/kTY7ger3u8+f2n3HNo WhU93g0hQjPj6z0ZV3ffFNhtoGtL2XJjj8ox9qL2pviz3fv1NKxyMAcQPgV2R0vGgXeR ctQBbWkKxhlQ5nBjvzHfB40+cNXUdqJ7BLJX6noj+az5ymVsAaoLR2VAEPfJXEM2vZ4O Ho2vWJN6f0/FshMh6MqlUYaA8hyJ/7znSaW/ltvZpBtMC2iiI7Mg79tEfqySIQfJ5PWM 0p8g== MIME-Version: 1.0 X-Received: by 10.220.116.5 with SMTP id k5mr13271193vcq.55.1362678109124; Thu, 07 Mar 2013 09:41:49 -0800 (PST) In-Reply-To: References: <8e17232e-5b24-4040-9215-c4bd89f34fa2@googlegroups.com> <622d4a2d-0014-4254-b211-c8fd66510f74@googlegroups.com> <4e3c3750-605f-4d91-af21-a1c22d89912f@googlegroups.com> Date: Thu, 7 Mar 2013 12:41:48 -0500 Subject: Re: An error when i switched from python v2.6.6 => v3.2.3 From: Joel Goldstick To: =?UTF-8?B?zp3Or866zr/PgiDOk866z4EzM866?= Content-Type: multipart/alternative; boundary=f46d04389463a3708204d75938d0 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: 76 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1362678117 news.xs4all.nl 6893 [2001:888:2000:d::a6]:47170 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:40805 --f46d04389463a3708204d75938d0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, Mar 7, 2013 at 11:22 AM, =CE=9D=CE=AF=CE=BA=CE=BF=CF=82 =CE=93=CE= =BA=CF=8133=CE=BA wrote: > I have fixed this! > Still ahve allok and you will see that in both of my images they appear i= n > the firstpage of superhost.gr > > the output of .py files appear fine except of that ehen a visitor click o= n > my first 2 image links he also sees as first line this: > > print ( "Content-type: text/html; charset=3Dutf-8\n" ) > > this is because the above code is a header and its contained to every cgi > .py file that i generate html ouput from via os.system() > > Can this be somehow eliminated? > -- > That page is not valid html. View the source in your browser to see -- it has no tag, no , no . fix that stuff > http://mail.python.org/mailman/listinfo/python-list > --=20 Joel Goldstick http://joelgoldstick.com --f46d04389463a3708204d75938d0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable



On Thu, Mar 7, 2013 at 11:22 AM, =CE=9D=CE=AF=CE=BA=CE=BF=CF=82 =CE= =93=CE=BA=CF=8133=CE=BA <nikos.gr33k@gmail.com> wrote:
I have fixed this!
Still ahve allok and you will see that in both of my images they appear in = the firstpage of superhos= t.gr

the output of .py files appear fine except of that ehen a visitor click on = my first 2 image links he also sees as first line this:

print ( "Content-type: text/html; charset=3Dutf-8\n" )

this is because the above code is a header and its contained to every cgi .= py file that i generate html ouput from via os.system()

Can this be somehow eliminated?
--

That page is not valid html.=C2=A0 View the source= in your browser to see -- it has no <html> tag, no <head>, no = <body>.=C2=A0 fix that stuff
http://mail.python.org/mailman/listinfo/python-list



--
--f46d04389463a3708204d75938d0--