File tree Expand file tree Collapse file tree
python/ql/src/semmle/python/objects Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -256,23 +256,23 @@ module Value {
256256 * There will be no `Value` for most byte strings, unless it is explicitly
257257 * declared in the source program.
258258 */
259- Value forBytes ( string bytes ) {
259+ StringValue forBytes ( string bytes ) {
260260 result .( BytesObjectInternal ) .strValue ( ) = bytes
261261 }
262262
263263 /** Gets the `Value` for the unicode constant `text`, if it exists.
264264 * There will be no `Value` for most text strings, unless it is explicitly
265265 * declared in the source program.
266266 */
267- Value forUnicode ( string text ) {
267+ StringValue forUnicode ( string text ) {
268268 result .( UnicodeObjectInternal ) .strValue ( ) = text
269269 }
270270
271271 /** Gets a `Value` for the string `text`. May be a bytes or unicode string for Python 2.
272272 * There will be no `Value` for most strings, unless it is explicitly
273273 * declared in the source program.
274274 */
275- Value forString ( string text ) {
275+ StringValue forString ( string text ) {
276276 result .( UnicodeObjectInternal ) .strValue ( ) = text
277277 or
278278 major_version ( ) = 2 and
You can’t perform that action at this time.
0 commit comments