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

Skip to content

Fix misuse of flags in re.sub() calls#2481

Closed
jwilk wants to merge 1 commit intosqlmapproject:masterfrom
jwilk:re.sub
Closed

Fix misuse of flags in re.sub() calls#2481
jwilk wants to merge 1 commit intosqlmapproject:masterfrom
jwilk:re.sub

Conversation

@jwilk
Copy link
Copy Markdown
Contributor

@jwilk jwilk commented Apr 14, 2017

The 4th argument of re.sub() is maximum number of substitutions, not flags.

Found using pydiatra.

The 4th argument of re.sub() is maximum number of substitutions,
not flags.
@stamparm stamparm closed this in a702daf Apr 14, 2017
@stamparm
Copy link
Copy Markdown
Member

@jwilk thx for this. Subtle bug :). I pushed the more "appropriate" version (to be consistent with the rest of the code)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants