Did I find the right examples for you? yes no

All Samples(15)  |  Call(9)  |  Derive(0)  |  Import(6)
Parse out the actor (author or committer) info from a line like::

        author Tom Preston-Werner <tom@mojombo.com> 1191999972 -0700

:return: [Actor, int_seconds_since_epoch, int_timezone_offset]

        def parse_actor_and_date(line):
	"""Parse out the actor (author or committer) info from a line like::
	
		author Tom Preston-Werner  1191999972 -0700
	
	:return: [Actor, int_seconds_since_epoch, int_timezone_offset]"""
	m = _re_actor_epoch.search(line)
	actor, epoch, offset = m.groups()
	return (Actor._from_string(actor), int(epoch), utctz_to_altz(offset))
        


src/k/r/kr-GitPython-0.3.1.1/git/objects/commit.py   kr-GitPython(Download)
						)
 
from util import (
					Traversable,
					Serializable,
		self.parents = tuple(self.parents)
 
		self.author, self.authored_date, self.author_tz_offset = parse_actor_and_date(next_line)
		self.committer, self.committed_date, self.committer_tz_offset = parse_actor_and_date(readline())
 

src/g/i/GitPython-0.3.2.RC1/git/objects/commit.py   GitPython(Download)
						hex_to_bin
						)
from util import (
						Traversable,
						Serializable,
		self.parents = tuple(self.parents)
 
		self.author, self.authored_date, self.author_tz_offset = parse_actor_and_date(next_line)
		self.committer, self.committed_date, self.committer_tz_offset = parse_actor_and_date(readline())
 

src/g/i/GitPython-HEAD/git/objects/commit.py   GitPython(Download)
                        hex_to_bin
                        )
from util import (
                        Traversable,
                        Serializable,
        self.parents = tuple(self.parents)
 
        self.author, self.authored_date, self.author_tz_offset = parse_actor_and_date(next_line)
        self.committer, self.committed_date, self.committer_tz_offset = parse_actor_and_date(readline())
 

src/k/r/kr-GitPython-0.3.1.1/git/objects/tag.py   kr-GitPython(Download)
from git.util import RepoAliasMixin
from git.util import hex_to_bin
from util import (
					get_object_type_by_name,
					parse_actor_and_date
 
			tagger_info = lines[3][7:]# tagger <actor> <date>
			self.tagger, self.tagged_date, self.tagger_tz_offset = parse_actor_and_date(tagger_info)
 
			# line 4 empty - it could mark the beginning of the next header

src/g/i/GitPython-0.3.2.RC1/git/objects/tag.py   GitPython(Download)
import base
from gitdb.util import hex_to_bin
from util import (
						get_object_type_by_name,
						parse_actor_and_date
 
			tagger_info = lines[3]# tagger <actor> <date>
			self.tagger, self.tagged_date, self.tagger_tz_offset = parse_actor_and_date(tagger_info)
 
			# line 4 empty - it could mark the beginning of the next header

src/g/i/GitPython-HEAD/git/objects/tag.py   GitPython(Download)
import base
from gitdb.util import hex_to_bin
from util import (
                        get_object_type_by_name,
                        parse_actor_and_date
 
            tagger_info = lines[3]# tagger <actor> <date>
            self.tagger, self.tagged_date, self.tagger_tz_offset = parse_actor_and_date(tagger_info)
 
            # line 4 empty - it could mark the beginning of the next header