This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Simplified datetime format string converter from LDML (Locale Data Markup | |
* Language) aka CLDR (Unicode Common Locale Data Repository) format to POSIX | |
* aka strftime format. | |
* | |
* Main usecase is using complete localization from CLDR with D3, which | |
* implements POSIX style of date formatting. | |
* | |
* References: | |
* - http://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
''' | |
Ranking code based on: | |
https://github.com/coleifer/peewee/blob/master/playhouse/sqlite_ext.py | |
''' | |
import struct | |
import math |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- original/sqlite_tokenizer.py | |
+++ patched/sqlite_tokenizer.py | |
@@ -8,6 +8,10 @@ | |
import ctypes | |
from ctypes import POINTER, CFUNCTYPE | |
import struct | |
+ | |
+ | |
+SQLITE_OK = 0 | |
+SQLITE_DONE = 101 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- ~/venv/1/lib/python2.7/site-packages/routes/route.py | |
+++ ~/venv/2/lib/python2.7/site-packages/routes/route.py | |
@@ -421,7 +421,7 @@ | |
# our regexp first. It's still possible we could be completely | |
# blank as we have a default | |
if self.reqs.has_key(var) and self.defaults.has_key(var): | |
- reg = '(?:' + partreg + rest + ')?' | |
+ reg = '(' + partreg + rest + ')?' | |
# Or we have a regexp match with no default, so now being |
NewerOlder