codeskulptor — replace the codeskulptor module of CodeSkulptor

codeskulptor (May 24, 2014)

Replace the codeskulptor module of CodeSkulptor.

Piece of SimpleGUICS2Pygame.

GPLv3 — Copyright (C) 2013, 2014 Olivier Pirson


Return a completed CodeSkulptor URL ressource from a short filename.

Example given in the CodeSkulptor file2url documentation: file2url(‘assets-Quick_fox.txt’) return ‘’

Parameters:filename – str
Raise:ValueError if filename is in a incorrect format (the good format is ‘^[a-zA-Z][a-zA-Z0-9]*[_-]’)

Does nothing.

In CodeSkulptor, this function change the timeout imposed on all programs (by default 5 seconds). See CodeSkulptor set_timeout documentation.

Parameters:seconds – int >= 0