Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d30e6d2

Browse files
committed
Python: Value::forString and friends returns StringValue
1 parent 27a7d09 commit d30e6d2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

python/ql/src/semmle/python/objects/ObjectAPI.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)