File: modernize.sh

package info (click to toggle)
sqlmap 1.7.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 12,652 kB
  • sloc: python: 51,128; xml: 13,698; ansic: 989; sh: 299; makefile: 62; sql: 61; perl: 30; cpp: 27; asm: 7
file content (8 lines) | stat: -rwxr-xr-x 305 bytes parent folder | download
1
2
3
4
5
6
7
8
#!/bin/bash

# Copyright (c) 2006-2023 sqlmap developers (https://sqlmap.org/)
# See the file 'LICENSE' for copying permission

# sudo pip install modernize

for i in $(find . -iname "*.py" | grep -v __init__); do python-modernize $i 2>&1 | grep -E '^[+-]' | grep -v range | grep -v absolute_import; done