Kerrisha, in  that case I recommend you to share the complete file (or
function) in something like https://gist.github.com/

Without context it is harder to help you.

-a

On Mon, Nov 21, 2011 at 10:02 AM, Kerrisha Nelson <[email protected]
> wrote:

> Oh that was my mistake with copy and pasting. That's how the code is
> written in the python shell. Just like the way you have it but it's still
> giving me that same error.
>
>
> On Mon, Nov 21, 2011 at 10:56 AM, Ariel Nunez <[email protected]>wrote:
>
>> it should be:
>>
>> if self.activated:
>>     self.file.write(raw_data)
>> else:
>>     return raw_data
>>
>> (notice the else is at the same level of the if)
>>
>>
>> On Mon, Nov 21, 2011 at 9:47 AM, Kerrisha Nelson <
>> [email protected]> wrote:
>>
>>> if self.activated:
>>>         self.file.write(raw_data)
>>>     else:
>>>         return raw_data
>>>
>>
>>
>

Reply via email to