Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #85438 > unrolled thread

Re: Varable parsing error with python

Started byOmPs <torque.india@gmail.com>
First post2015-02-10 13:59 +0530
Last post2015-02-10 13:59 +0530
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Varable parsing error with python OmPs <torque.india@gmail.com> - 2015-02-10 13:59 +0530

#85438 — Re: Varable parsing error with python

FromOmPs <torque.india@gmail.com>
Date2015-02-10 13:59 +0530
SubjectRe: Varable parsing error with python
Message-ID<mailman.18603.1423556967.18130.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

On 10 Feb 2015 13:12, "Chris Angelico" <rosuav@gmail.com> wrote:
>
> On Tue, Feb 10, 2015 at 6:30 PM, OmPs <torque.india@gmail.com> wrote:
> >     def _getPackgeVersion(xmlfile, p):
> >         package = str(p)
> >         if isinstance(fpmdict["application"]["package"], list):
> >             for i in fpmdict["application"]["package"]:
> >                 if i["@name"] == p:
> >                     _pkgVersion = i["version"]
> >         else:
> >             _pkgversion = fpmdict["application"]["package"]["version"]
> >             return _pkgVersion
>
> One of your branches doesn't have a return statement in it, so Python
> just returns None. You may want to unindent that return statement one
> level.
>
Tried that as well getting the same error.
> ChrisA
> --
> https://mail.python.org/mailman/listinfo/python-list

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web