This file is indexed.

/usr/lib/python2.7/dist-packages/kiva/constants.py is in python-enable 4.3.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
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
#------------------------------------------------------------------------------
# Copyright (c) 2005, Enthought, Inc.
# some parts copyright Space Telescope Science Institute
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD
# license included in enthought/LICENSE.txt and may be redistributed only
# under the conditions described in the aforementioned license.  The license
# is also available online at http://www.enthought.com/licenses/BSD.txt
# Thanks for using Enthought open source!
#------------------------------------------------------------------------------
""" Constants used by core2d drawing engine. """

from numpy import array

#--------------------------------------------------------------------
# Line Dash Constants
#--------------------------------------------------------------------
NO_DASH = (0,array([0]))
del array

#--------------------------------------------------------------------
# Line Cap Constants
#--------------------------------------------------------------------

CAP_ROUND  = 0
CAP_BUTT   = 1
CAP_SQUARE = 2

#--------------------------------------------------------------------
# Line Join Constants
#--------------------------------------------------------------------

JOIN_ROUND = 0
JOIN_BEVEL = 1
JOIN_MITER = 2

#--------------------------------------------------------------------
# Path Drawing Mode Constants
#
# Path drawing modes for path drawing methods.
# The values are chosen so that bit flags can be checked in a later
# C version.
#--------------------------------------------------------------------

FILL            = 1
EOF_FILL        = 2
STROKE          = 4
FILL_STROKE     = 5
EOF_FILL_STROKE = 6

#-----------------------------------------------------------------------------
# Font Constants
#-----------------------------------------------------------------------------

NORMAL = 0
BOLD   = 1
ITALIC = 2
BOLD_ITALIC = 3

# Font families, as defined by the Windows API, and their CSS equivalents
DEFAULT     = 0
SWISS       = 1     # Sans-serif
ROMAN       = 2     # Serif
MODERN      = 3     # Monospace
DECORATIVE  = 4     # Fantasy
SCRIPT      = 5     # Cursive
TELETYPE    = 6

#-----------------------------------------------------------------------------
# Text Drawing Mode Constants
#-----------------------------------------------------------------------------

TEXT_FILL               = 0
TEXT_STROKE             = 1
TEXT_FILL_STROKE        = 2
TEXT_INVISIBLE          = 3
TEXT_FILL_CLIP          = 4
TEXT_STROKE_CLIP        = 5
TEXT_FILL_STROKE_CLIP   = 6
TEXT_CLIP               = 7
TEXT_OUTLINE            = 8

#-----------------------------------------------------------------------------
# Subpath Drawing Primitive Constants
#
# Used by the drawing state machine to determine what object to draw.
#-----------------------------------------------------------------------------

POINT         = 0
LINE          = 1
LINES         = 2
RECT          = 3
CLOSE         = 4
CURVE_TO      = 5
QUAD_CURVE_TO = 6
ARC           = 7
ARC_TO        = 8


#-----------------------------------------------------------------------------
# Subpath CTM Constants
#
# These are added so its possible for OpenGL to do the matrix transformations
# on the data (its much faster than doing it with Numeric).
#-----------------------------------------------------------------------------

SCALE_CTM      = 5
TRANSLATE_CTM  = 6
ROTATE_CTM     = 7
CONCAT_CTM     = 8
LOAD_CTM       = 9


#-----------------------------------------------------------------------------
# Marker Types
#
# These are the marker types for draw_marker_at_points.  Some backends
# (like Agg) have fast implementations for these; other backends manually
# construct the paths representing these markers.
#
# Note that draw_marker_at_points takes a marker name as a string.
#-----------------------------------------------------------------------------

NO_MARKER = 0
SQUARE_MARKER = 1
DIAMOND_MARKER = 2
CIRCLE_MARKER = 3
CROSSED_CIRCLE_MARKER = 4
CROSS_MARKER = 5
TRIANGLE_MARKER = 6
INVERTED_TRIANGLE_MARKER = 7
PLUS_MARKER = 8
DOT_MARKER = 9
PIXEL_MARKER = 10

#EOF