This file is indexed.

/usr/lib/python2.7/dist-packages/cvs2svn_lib/rcsparser.py is in cvs2svn 2.4.0-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# (Be in -*- python -*- mode.)
#
# ====================================================================
# Copyright (c) 2011 CollabNet.  All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution.  The terms
# are also available at http://subversion.tigris.org/license-1.html.
# If newer versions of this license are posted there, you may use a
# newer version instead, at your option.
#
# This software consists of voluntary contributions made by many
# individuals.  For exact contribution history, see the revision
# history and logs, available at http://cvs2svn.tigris.org/.
# ====================================================================

"""The interface between cvs2svn and cvs2svn_rcsparse."""

# These identifiers are imported to be exported:
from cvs2svn_rcsparse.common import Sink
from cvs2svn_rcsparse.common import RCSParseError


selected_parser = None

def select_texttools_parser():
  """Configure this module to use the texttools parser.

  The texttools parser is faster but depends on mx.TextTools, which is
  not part of the Python standard library.  If it is not installed,
  this function will raise an ImportError."""

  global selected_parser
  import cvs2svn_rcsparse.texttools
  selected_parser = cvs2svn_rcsparse.texttools.Parser


def select_python_parser():
  """Configure this module to use the Python parser.

  The Python parser is slower but works everywhere."""

  global selected_parser
  import cvs2svn_rcsparse.default
  selected_parser = cvs2svn_rcsparse.default.Parser


def select_parser():
  """Configure this module to use the best parser available."""

  try:
    select_texttools_parser()
  except ImportError:
    select_python_parser()


def parse(file, sink):
  """Parse an RCS file.

  The arguments are the same as those of
  cvs2svn_rcsparse.common._Parser.parse() (see that method's docstring
  for more details).
  """

  if selected_parser is None:
    select_parser()

  return selected_parser().parse(file, sink)