Self.assertEqual(some_function(), dent(b""" Return b'Lorem ipsum dolor sit amet\n consectetuer adipiscing elit' I encountered this while writing a unit test for a method that returned a long multiline byte string, for example: # The function to be tested However, in Python 3.x, dent doesn't seem to work with byte strings. added missing gtween.When I use a triple-quoted multiline string in Python, I tend to use dent to keep the code readable, with good indentation: some_string = dent(""" Prevent normalize function from returning nan if vector is 0 length Fix textfield crashing when created with a sample text Sprite: fix self references when cloning Renamed "getBufDirty()" to "isBufDirty()" Fixes Renamed "Font:getFontSize()" to "Font:getSize()" Added new functions to resize callback data Added new functions to inputText callback data Fixed key codes sended to inputText callback Fixed fonts not being loaded correctly sometimes Use OpenAL soft backend for more features Use wasm exception catching: provides a huge boost but only major browsers support it Break characters is now considered 'latin', to avoid running through slow harfbuzz shaping when a text is truncated Allow filtering and balance setting in audio/openal Avoid setting an empty NSUserTrackingUsageDescription Allow setting min sdk requirement (android) don't allocate buffers for short vertex data Intercept KEY_BACK before handled by IME Add a context variable to setTextInput call and event Implement save file and open directory dialogs remove GetTempPath call because it caused window to disappear… Fix application paths and implement get(directory) Use initial window size value from project settings Implement some of the getters/setters available on QT Lookup styles tables following hierarchy Expose adjusted cell spacing in layout info Fix computation of required size when logical alignment is requested Fix layout group not propagating dirty info Ensure relayout is done as quickly as possible Fix switching back to raw values from styled values Fix setColor not triggering render in on-demand rendering Fix stencil mask not applied when clearing Layout can optionnaly snap the coordinates to the logical grid Sprite:getBounds gets a new parameter to compute real bounds depending on visibility and clipping Fix Particles reallocation after clearing change position of find/replace dialog box Added the ability to dock output widget to left and right panels Added the ability to change the color of whitespaces using styles Added virtual space selection (only when using ALT LMB) Fixed highlighter not being reset sometimes Fixed undo/redo actions when using color picker Fixed search results not being visible when code is folded Fix issue with on demand rendering when going into background Fix text size miscalculated, causing constant relayout mouse wheel had a 120 which resulted in delta of 144000 (120120): fixed getKeyboardModifiers were still activated after keyup events: fixed Implement set cursor and file dialogs Fixes Improve performance and allow textfield font to be styled Add modifiers to mouse/touch events few mintor adjustments pathfileexists test if a folder or a file exists can test for modes: 0=Existence only, 2=Write-only, 4=Read-only, 6=Read and write returns 1 on success or nil on fail implemented pathfileexists for win64 (Qt) Avoid unecessary work when no effects are in use Include the stride parameter to attributes descriptor Don't propagate downward changes if flags are already set on children Don't bother clearing caches for now, since it can miss some caches anyway Reference Content in children internal table Set window size to requested dimensions right on start Fixes update 3dbase 3DObjLoader to support latest Blender > 3.4.0 obj format getTextPositionFromPoint now returns the line number also color tags in text now accept style references Implement mouse_enter and mouse_leave events on desktop Fix mouse wheel coordinates (and add buttons) Use absolute directory when looking for resources Fix project internal name, use app name as default window title use Luau internal string:split function (8x faster) add a way to supply biquad filters parameters if nil global coordinates are assumed as before. hitTestPoint accepts a fourth arg specifying which sprite is the reference of x,y coordinates given. Add Sprite:spriteToLocal to convert from one sprite local space to another
0 Comments
Leave a Reply. |