diff options
| author | beatrice <beatrice@dangofactory.net> | 2026-11-22 20:02:54 +0900 |
|---|---|---|
| committer | beatrice <beatrice@dangofactory.net> | 2026-11-22 20:02:54 +0900 |
| commit | df92ccb9f67b8fb9aa6cc519f88599632d0cd4bb (patch) | |
| tree | 8b065509c7ba5a6e4b2f07a29ce2d701a83543e3 /misc/umac/repeat.py | |
| parent | ef717fe1c6dba4e964474aca92ea8e3e94b524c6 (diff) | |
| download | nettle-master.tar.gz nettle-master.zip | |
Release tarball nettle-3.10.1.tar.gz (dist-generated files / local differences from tag)HEADlocal/nettlemaster
Diffstat (limited to 'misc/umac/repeat.py')
| -rw-r--r-- | misc/umac/repeat.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/misc/umac/repeat.py b/misc/umac/repeat.py deleted file mode 100644 index 0bcf52ef..00000000 --- a/misc/umac/repeat.py +++ /dev/null @@ -1,19 +0,0 @@ -import sys - -if len(sys.argv) < 3: - sys.stderr.write('Usage: repeat [string] [length]\n') - sys.exit(1) - -s = sys.argv[1] -length = int(sys.argv[2]) -if length > 0: - if length > 1024: - while len(s) < 1024: - s = s + s; - while length > len(s): - sys.stdout.write(s) - length -= len(s) - - sys.stdout.write(s[:length]) - - |
