Steven D'Aprano wrote:
> On Mon, Feb 22, 2016 at 01:41:42AM +, Alan Gauld wrote:
>> On 21/02/16 19:32, Cody West wrote:
>
>> > I'm trying to take 48L, which I believe is the character number, and
>> > get the line number from that.
The documentation isn't explicit, but
"""
with open('/foo/b
On Mon, Feb 22, 2016 at 01:41:42AM +, Alan Gauld wrote:
> On 21/02/16 19:32, Cody West wrote:
> > I'm trying to take 48L, which I believe is the character number, and get
> > the line number from that.
>
> I'm not totally clear what you mean but, if it is that 48L
> is the character count fro
On 21/02/16 19:32, Cody West wrote:
> I'm using yara-python for some file scanning and I'm trying to take the
> offset in the 'strings' field and turn it into a line number.
I know nothing about yara except that its some kind of
pattern matching engine. However...
> (48L, '$execution', 'eval(base
Hi,
I'm using yara-python for some file scanning and I'm trying to take the
offset in the 'strings' field and turn it into a line number.
http://yara.readthedocs.org/en/latest/yarapython.html
Below is what I'm working with.
(48L, '$execution', 'eval(base64_decode')
I'm trying to take 48L, whic