diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/salt/transport/tcp.py b/salt/transport/tcp.py
index <HASH>..<HASH> 100644
--- a/salt/transport/tcp.py
+++ b/salt/transport/tcp.py
@@ -685,6 +685,12 @@ class TCPReqServerChannel(
# pylint: enable=W1701
+ def __enter__(self):
+ return self
+
+ def __exit__(self, *args):
+ self.cl... | Implement the context manager protocol for `TCPReqServerChannel` | py |
diff --git a/marshmallow_jsonapi/fields.py b/marshmallow_jsonapi/fields.py
index <HASH>..<HASH> 100644
--- a/marshmallow_jsonapi/fields.py
+++ b/marshmallow_jsonapi/fields.py
@@ -104,7 +104,7 @@ class Relationship(BaseRelationship):
if isinstance(self.__schema, SchemaABC):
return self.__schema
... | removed many argument from schema initialization when schema is a class reference. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,8 +8,8 @@ setup(
description='Blanc Basic News for Django',
long_description=open('README.rst').read(),
url='https://github.com/developersociety/blanc-basic-news',
- maintainer='Blanc Ltd',
- maintainer... | Update setup.py files for DEV | py |
diff --git a/hijack/middleware.py b/hijack/middleware.py
index <HASH>..<HASH> 100644
--- a/hijack/middleware.py
+++ b/hijack/middleware.py
@@ -16,10 +16,10 @@ class HijackRemoteUserMiddleware(object):
if not is_hijacked or not remote_username:
return
# Ok, we hijacked and remote. Just ass... | don't rely on a specific version of Django when checking if we should use the is_authenticated property or callable | py |
diff --git a/base/hica_base.py b/base/hica_base.py
index <HASH>..<HASH> 100644
--- a/base/hica_base.py
+++ b/base/hica_base.py
@@ -11,6 +11,9 @@ class HicaValueType(object):
(NONE, PATH, DEVICE, GLOB, STRING) = [0] + [1 << x for x in range(4)]
class HicaInjector(object):
+ def get_description(self):
+ return ... | Each injector should have human readable description | py |
diff --git a/test/test_client.py b/test/test_client.py
index <HASH>..<HASH> 100644
--- a/test/test_client.py
+++ b/test/test_client.py
@@ -255,3 +255,8 @@ class TestEsiPy(unittest.TestCase):
with self.assertRaises(UserWarning):
self.client_no_auth.request(operation())
+
+ warn... | Work around in test case for python <= <I> warnings registry behaviour | py |
diff --git a/tests/web/test_web_client.py b/tests/web/test_web_client.py
index <HASH>..<HASH> 100644
--- a/tests/web/test_web_client.py
+++ b/tests/web/test_web_client.py
@@ -1,4 +1,5 @@
import asyncio
+import gc
import re
import socket
import unittest
@@ -241,4 +242,5 @@ class TestWebClient(unittest.TestCase):
... | force python to gc unclosed session | py |
diff --git a/spyder/utils/tests/test_programs.py b/spyder/utils/tests/test_programs.py
index <HASH>..<HASH> 100644
--- a/spyder/utils/tests/test_programs.py
+++ b/spyder/utils/tests/test_programs.py
@@ -27,6 +27,7 @@ else:
INVALID_INTERPRETER = os.path.join(home_dir, 'miniconda', 'bin', 'ipython')
+@flaky(max_... | Testing: Add flaky decorator to a test that fails sometimes | py |
diff --git a/tests/test_write_readback.py b/tests/test_write_readback.py
index <HASH>..<HASH> 100644
--- a/tests/test_write_readback.py
+++ b/tests/test_write_readback.py
@@ -789,7 +789,7 @@ def test_dtype_structured(fmt):
names = []
for _ in range(random.randint(1, 5)):
s = random_str_as... | Fixed bugs in the unit tests that could result in field name duplicates in a dtype. | py |
diff --git a/zxb.py b/zxb.py
index <HASH>..<HASH> 100755
--- a/zxb.py
+++ b/zxb.py
@@ -271,16 +271,14 @@ def main(argv):
if tmp is not None:
asm_output[i] = '\n'.join(tmp)
- ''' # This seems to be useless!
- #asm_output = '\n'.join(asm_output)
+ asm_output = '\n'.join(asm_output)
... | REverted back last patch, since zxbppasm is needed to preprocess #include headers in .asm library files. | py |
diff --git a/tests/test_halo.py b/tests/test_halo.py
index <HASH>..<HASH> 100644
--- a/tests/test_halo.py
+++ b/tests/test_halo.py
@@ -329,7 +329,7 @@ class TestHalo(unittest.TestCase):
"""
spinner = Halo()
self.assertEqual(spinner.text, '')
- self.assertEqual(spinner.text_color, 'whit... | Fixed test test_spinner_getters_setters | py |
diff --git a/holoviews/plotting/bokeh/element.py b/holoviews/plotting/bokeh/element.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/bokeh/element.py
+++ b/holoviews/plotting/bokeh/element.py
@@ -1,6 +1,6 @@
import param
-from bokeh.plotting import figure
+import bokeh.plotting
from bokeh.models import Colum... | Qualified and cleaned up call to bokeh.plotting.figure | py |
diff --git a/src/binwalk/plugins/cpio.py b/src/binwalk/plugins/cpio.py
index <HASH>..<HASH> 100644
--- a/src/binwalk/plugins/cpio.py
+++ b/src/binwalk/plugins/cpio.py
@@ -16,7 +16,8 @@ class CPIOPlugin(binwalk.core.plugin.Plugin):
if self.module.extractor.enabled:
self.module.extractor.add_rule(re... | Updated CPIO plugin to not recurse into extracted directories when --matryoshka is enabled | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,9 +12,6 @@ requires = [
'pillow==5.2.0',
]
-with open('README.md', mode='rt', encoding='utf-8') as f:
- long_description = f.read()
-
about = {}
with open(os.path.join(here, 'balebot', '__version__... | add changelog file into long_description I have no idea why I removed this changelog file. | py |
diff --git a/src/homophony/__init__.py b/src/homophony/__init__.py
index <HASH>..<HASH> 100644
--- a/src/homophony/__init__.py
+++ b/src/homophony/__init__.py
@@ -42,6 +42,11 @@ class LoudWSGIHandler(WSGIHandler):
def __call__(self, environ, start_response):
self._stored = None
+ # zc.testbrowser... | zc.testbrowser requests ``robots.txt`` which may trigger the rendering of <I>.html template. Do not pass these requests to Django application. | py |
diff --git a/hamster/widgets/dayline.py b/hamster/widgets/dayline.py
index <HASH>..<HASH> 100644
--- a/hamster/widgets/dayline.py
+++ b/hamster/widgets/dayline.py
@@ -126,8 +126,10 @@ class DayLine(graphics.Area):
mouse_down = state & gtk.gdk.BUTTON1_MASK
- highlight_start = self.highlight_start + s... | don't die if there is nothing to highlight | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -23,10 +23,18 @@ setup(
description="django-uni-form",
long_description=LONG_DESCRIPTION,
classifiers=[
- "Programming Language :: Python",
- "Topic :: Software Development :: Libraries :: Python M... | Final changes to setup.py to support the <I> release | py |
diff --git a/fontbakery-check-ttf.py b/fontbakery-check-ttf.py
index <HASH>..<HASH> 100755
--- a/fontbakery-check-ttf.py
+++ b/fontbakery-check-ttf.py
@@ -703,13 +703,17 @@ def main():
elif len(registered_vendor_ids.keys()) > 0:
if vid in registered_vendor_ids.keys():
# TODO check registered_vendor... | refactoring of check "Checking OS/2 achVendID" | py |
diff --git a/cassandra/connection.py b/cassandra/connection.py
index <HASH>..<HASH> 100644
--- a/cassandra/connection.py
+++ b/cassandra/connection.py
@@ -220,8 +220,14 @@ class Connection(object):
return
if not isinstance(options_response, SupportedMessage):
- log.error("Did not get ... | Don't error log ConnectionExceptions during handshake | py |
diff --git a/term2048/ui.py b/term2048/ui.py
index <HASH>..<HASH> 100644
--- a/term2048/ui.py
+++ b/term2048/ui.py
@@ -28,10 +28,14 @@ def print_version_and_exit():
print("term2048 v%s" % __version__)
sys.exit(0)
+
def print_rules_and_exit():
- print("Use your arrow keys to move the tiles. When two tile... | PEP8 compliance in ui.py | py |
diff --git a/neovim/script_host.py b/neovim/script_host.py
index <HASH>..<HASH> 100644
--- a/neovim/script_host.py
+++ b/neovim/script_host.py
@@ -23,7 +23,9 @@ class ScriptHost(object):
exec(script, self.module.__dict__)
def python_execute_file(self, file_path):
- execfile(file_path, self.module... | Refactor: execfile does not exist in Python3 | py |
diff --git a/src/hunter/actions.py b/src/hunter/actions.py
index <HASH>..<HASH> 100644
--- a/src/hunter/actions.py
+++ b/src/hunter/actions.py
@@ -1,3 +1,4 @@
+from __future__ import unicode_literals
import sys
import os
import linecache | Use unicode_literals to solve problem I don't understand. :flushed: | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -234,6 +234,11 @@ html_static_path = ['_static']
# implements a search results scorer. If empty, the default will be used.
html_search_scorer = '_static/scorer.js'
+html_js_files = [
+ 'custom.js',
+ 'cop... | Use html_js_files instead of the old approach to add JS files. | py |
diff --git a/tests/test_mmio.py b/tests/test_mmio.py
index <HASH>..<HASH> 100644
--- a/tests/test_mmio.py
+++ b/tests/test_mmio.py
@@ -1,3 +1,4 @@
+import os
import sys
import time
import periphery
@@ -152,6 +153,10 @@ def test_interactive():
if __name__ == "__main__":
+ if os.environ.get("CI") == "true":
+ ... | tests/mmio: run arguments test in ci environment | py |
diff --git a/monstro/orm/fields.py b/monstro/orm/fields.py
index <HASH>..<HASH> 100644
--- a/monstro/orm/fields.py
+++ b/monstro/orm/fields.py
@@ -118,8 +118,9 @@ class ForeignKey(Field):
class ManyToMany(Array):
- def __init__(self, **kwargs):
- super().__init__(field=ForeignKey(**kwargs)) # pylint: di... | Fixed ManyToMany field initialization. | py |
diff --git a/userservice/user.py b/userservice/user.py
index <HASH>..<HASH> 100644
--- a/userservice/user.py
+++ b/userservice/user.py
@@ -98,7 +98,10 @@ class UserServiceMiddleware(object):
def _get_authenticated_user(self, request):
netid = None
if settings.DEBUG:
- netid = 'javerage... | Prefer to use the request username over a default | py |
diff --git a/acestream/request.py b/acestream/request.py
index <HASH>..<HASH> 100644
--- a/acestream/request.py
+++ b/acestream/request.py
@@ -29,6 +29,12 @@ class Request(object):
def getversion(self):
return self.getservice(method='get_version')
+ def getsearch(self, **params):
+ return self.get('server... | request: add methods for search endpoint | py |
diff --git a/hotdoc/core/tree.py b/hotdoc/core/tree.py
index <HASH>..<HASH> 100644
--- a/hotdoc/core/tree.py
+++ b/hotdoc/core/tree.py
@@ -134,9 +134,9 @@ class Page(object):
self.meta = Schema(Page.meta_schema).validate(meta)
except SchemaError as _:
warn('invalid-page-metadata',
- ... | page: discard all meta if validation failed schema will in this case not set the default values, and we do not want to require subclasses to specify them at get_time, which would defeat the purpose. This should be fixed in schema, but for now simply discard all meta and warn about it. | py |
diff --git a/Lib/glyphsLib/builder/glyph.py b/Lib/glyphsLib/builder/glyph.py
index <HASH>..<HASH> 100644
--- a/Lib/glyphsLib/builder/glyph.py
+++ b/Lib/glyphsLib/builder/glyph.py
@@ -143,7 +143,7 @@ def to_ufo_glyph(self, ufo_glyph, layer, glyph): # noqa: C901
ufo_glyph.lib[GLYPHLIB_PREFIX + "Export"] = e... | Try adding unicodes only in features.py | py |
diff --git a/tests/parsers/webobs.py b/tests/parsers/webobs.py
index <HASH>..<HASH> 100644
--- a/tests/parsers/webobs.py
+++ b/tests/parsers/webobs.py
@@ -88,4 +88,4 @@ class WebObsResultsParserTestCase(unittest.TestCase):
Tests for WebObsResultsParser class.
"""
def test_dummy(self):
- parser = W... | Parser has one required argument, fixed tests. | py |
diff --git a/openpnm/models/physics/ad_dif_mig_conductance.py b/openpnm/models/physics/ad_dif_mig_conductance.py
index <HASH>..<HASH> 100644
--- a/openpnm/models/physics/ad_dif_mig_conductance.py
+++ b/openpnm/models/physics/ad_dif_mig_conductance.py
@@ -172,11 +172,6 @@ def ad_dif_mig(
Peij_mig[(Peij_mig < 1e-10)... | Removed peclet number export in ad_dif_mig_conductance | py |
diff --git a/ReText/window.py b/ReText/window.py
index <HASH>..<HASH> 100644
--- a/ReText/window.py
+++ b/ReText/window.py
@@ -24,7 +24,10 @@ class ReTextWindow(QMainWindow):
except: pass
else:
iconTheme = gconf.stdout.read().rstrip()
- if iconTheme: QIcon.setThemeName(iconTheme.decode())
+ if iconTh... | window: avoid calling gconf hack on every run, save value to settings | py |
diff --git a/new_english/bin/mappings.py b/new_english/bin/mappings.py
index <HASH>..<HASH> 100644
--- a/new_english/bin/mappings.py
+++ b/new_english/bin/mappings.py
@@ -432,6 +432,7 @@ mappings = {
"data.count": "number",
"data.operator": "bool",
+ "bytes": "number"
}
bool_regexes = [ | Add more mappings to new_english | py |
diff --git a/trailblazer/store/cli.py b/trailblazer/store/cli.py
index <HASH>..<HASH> 100644
--- a/trailblazer/store/cli.py
+++ b/trailblazer/store/cli.py
@@ -47,7 +47,8 @@ def delete(context, pending, yes, force, latest, case_id):
click.echo("ERROR - missing analysis information! ({})"
... | add one more sanity check before delete | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -28,8 +28,8 @@ MOCK_MODULES = ['numpy', 'scipy', 'pandas', 'skimage', 'netCDF4', 'basemap', 'ma
"pygrib", "mpl_toolkits", "mpl_toolkits.axes_grid", "mpl_toolkits.basemap", "mpl_toolkits.basemap.pyp... | Added mock modules to conf to fix autodoc generation. | py |
diff --git a/src/rez/cli/_util.py b/src/rez/cli/_util.py
index <HASH>..<HASH> 100644
--- a/src/rez/cli/_util.py
+++ b/src/rez/cli/_util.py
@@ -134,7 +134,10 @@ def sigbase_handler(signum, frame):
# kill all child procs
# FIXME this kills parent procs as well
if not _env_var_true("_REZ_NO_KILLPG"):
- ... | Fix handling of CTRL+C on Windows Windows doesn't support os.killpg | py |
diff --git a/salt/modules/boto_vpc.py b/salt/modules/boto_vpc.py
index <HASH>..<HASH> 100644
--- a/salt/modules/boto_vpc.py
+++ b/salt/modules/boto_vpc.py
@@ -194,6 +194,20 @@ def create_subnet(vpc_id, cidr_block, availability_zone=None, region=None, key=N
return False
+def create_customer_gateway(type, ip... | Added the ability to create customer gateways for a VPC using the boto_vpc module. | py |
diff --git a/fundamentals/__version__.py b/fundamentals/__version__.py
index <HASH>..<HASH> 100644
--- a/fundamentals/__version__.py
+++ b/fundamentals/__version__.py
@@ -1 +1 @@
-__version__ = '1.3.8'
+__version__ = '1.3.9' | added the ability to force execution of mysql scripts - skipping errors | py |
diff --git a/pypdflite/pdfdocument.py b/pypdflite/pdfdocument.py
index <HASH>..<HASH> 100644
--- a/pypdflite/pdfdocument.py
+++ b/pypdflite/pdfdocument.py
@@ -234,7 +234,7 @@ class PDFDocument(object):
print PDFTTFont.available_fonts()
# Writing
- def add_text(self, text, cursor=None):
+ def a... | Added justification to document.add_text | py |
diff --git a/src/pythonfinder/pythonfinder.py b/src/pythonfinder/pythonfinder.py
index <HASH>..<HASH> 100644
--- a/src/pythonfinder/pythonfinder.py
+++ b/src/pythonfinder/pythonfinder.py
@@ -14,11 +14,13 @@ from .exceptions import InvalidPythonVersion
from .utils import Iterable, filter_pythons, version_re
if envir... | Fix named python discovery | py |
diff --git a/tests/parsers/test_gherkinlint.py b/tests/parsers/test_gherkinlint.py
index <HASH>..<HASH> 100644
--- a/tests/parsers/test_gherkinlint.py
+++ b/tests/parsers/test_gherkinlint.py
@@ -5,18 +5,18 @@ from __future__ import unicode_literals
import codecs
import os.path
-import inlineplz.parsers.gherkinlint ... | fixing typo and making the gherkin-lint python-acceptable alias more consistent (#<I>) | py |
diff --git a/smart_selects/views.py b/smart_selects/views.py
index <HASH>..<HASH> 100644
--- a/smart_selects/views.py
+++ b/smart_selects/views.py
@@ -22,8 +22,11 @@ def is_m2m(model_class, field):
is_pre_19_syntax = False
if is_pre_19_syntax:
- if isinstance(getattr(model_class, field), ReverseM... | Fix attribute error when field filtered not is foreignkey | py |
diff --git a/beanstalkc.py b/beanstalkc.py
index <HASH>..<HASH> 100755
--- a/beanstalkc.py
+++ b/beanstalkc.py
@@ -131,9 +131,9 @@ class Connection(object):
"""Put a job into the current tube. Returns job id."""
assert isinstance(body, str), 'Job body must be a str instance'
jid = self._inter... | Formatting: fix PEP-8 violations Thanks to Guo Jing for pointing out the improper indendation of the hanging indent. | py |
diff --git a/tests/parser/features/iteration/test_range_in.py b/tests/parser/features/iteration/test_range_in.py
index <HASH>..<HASH> 100644
--- a/tests/parser/features/iteration/test_range_in.py
+++ b/tests/parser/features/iteration/test_range_in.py
@@ -96,7 +96,7 @@ def is_owner() -> bool:
assert c.is_owner(send... | Remove tester from assert_tx_failed. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -76,10 +76,6 @@ Parsing::
"""
VERSION = get_version()
-DOWNLOAD_URL = (
- 'https://github.com/downloads/andialbrecht/sqlparse/'
- 'sqlparse-%s.tar.gz' % VERSION
-)
kwargs = {}
@@ -94,7 +90,6 @@ setup(
descr... | Remove download url from setup (fixes issue<I>). Downloads on github are disabled since December <I>. | py |
diff --git a/opbeat/base.py b/opbeat/base.py
index <HASH>..<HASH> 100644
--- a/opbeat/base.py
+++ b/opbeat/base.py
@@ -160,7 +160,7 @@ class Client(object):
self.logger.info(msg)
self.is_send_disabled = (
- os.environ.get('OPBEAT_DISABLE_SEND', '').lower() == 'true'
+ os.en... | also accept '1' as truthy value for OPBEAT_DISABLE_SEND | py |
diff --git a/pyxel/examples/08_triangle_api.py b/pyxel/examples/08_triangle_api.py
index <HASH>..<HASH> 100755
--- a/pyxel/examples/08_triangle_api.py
+++ b/pyxel/examples/08_triangle_api.py
@@ -36,4 +36,7 @@ while True:
t = triangle_list.pop(0)
draw_triangle(*t)
+ if pyxel.btnp(pyxel.KEY_Q):
+ ... | Add the quit key to the example #8 | py |
diff --git a/grimoire/elk/gerrit.py b/grimoire/elk/gerrit.py
index <HASH>..<HASH> 100644
--- a/grimoire/elk/gerrit.py
+++ b/grimoire/elk/gerrit.py
@@ -264,6 +264,14 @@ class GerritEnrich(Enrich):
"origin": {
"type": "string",
"index":"not_analyzed"
+ },
... | [gerrit enrich] Add to mapping as not analyzed url and branch. | py |
diff --git a/anytree/exporter/dotexporter.py b/anytree/exporter/dotexporter.py
index <HASH>..<HASH> 100644
--- a/anytree/exporter/dotexporter.py
+++ b/anytree/exporter/dotexporter.py
@@ -1,5 +1,7 @@
+import logging
import codecs
from os import path
+from os import remove
from subprocess import check_call
from tempf... | Delay dot file removal. Fix #<I>. | py |
diff --git a/playhouse/sqliteq.py b/playhouse/sqliteq.py
index <HASH>..<HASH> 100644
--- a/playhouse/sqliteq.py
+++ b/playhouse/sqliteq.py
@@ -134,6 +134,8 @@ class SqliteQueueDatabase(SqliteExtDatabase):
self._autostart = autostart
self._results_timeout = results_timeout
self._num_readers = ... | Adding method to tell if db is stopped. | py |
diff --git a/faker/providers/en_CA/address.py b/faker/providers/en_CA/address.py
index <HASH>..<HASH> 100644
--- a/faker/providers/en_CA/address.py
+++ b/faker/providers/en_CA/address.py
@@ -125,7 +125,7 @@ class Provider(AddressProvider):
'{{building_number}} {{street_name}} {{secondary_address}}',
)
... | fixed a small typo in en_CA provider to generate Canadian postal codes in addresses instead of the U.S. | py |
diff --git a/zipline/data/treasuries.py b/zipline/data/treasuries.py
index <HASH>..<HASH> 100644
--- a/zipline/data/treasuries.py
+++ b/zipline/data/treasuries.py
@@ -12,7 +12,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissi... | BUG: Fix treasury loading. Make adjustments for using Python built-in ElementTree instead of lxml based lxml. lxml was edited out during pulling in of memory friendly loading of treasury curves, however some of the use of ETree was lxml specific. Mea culpa. | py |
diff --git a/tools/azure-devtools/src/azure_devtools/scenario_tests/recording_processors.py b/tools/azure-devtools/src/azure_devtools/scenario_tests/recording_processors.py
index <HASH>..<HASH> 100644
--- a/tools/azure-devtools/src/azure_devtools/scenario_tests/recording_processors.py
+++ b/tools/azure-devtools/src/azu... | recording processor updating for foreign clouds (#<I>) * recording processor updating for foreign clouds * Update tools/azure-devtools/src/azure_devtools/scenario_tests/recording_processors.py | py |
diff --git a/pycbc/workflow/core.py b/pycbc/workflow/core.py
index <HASH>..<HASH> 100644
--- a/pycbc/workflow/core.py
+++ b/pycbc/workflow/core.py
@@ -213,8 +213,8 @@ class Executable(pegasus_workflow.Executable):
# Determine the sections from the ini file that will configure
# this executable
... | Use ifo_list and string as section tags | py |
diff --git a/src/wormhole/_dilation/manager.py b/src/wormhole/_dilation/manager.py
index <HASH>..<HASH> 100644
--- a/src/wormhole/_dilation/manager.py
+++ b/src/wormhole/_dilation/manager.py
@@ -90,13 +90,13 @@ def make_side():
@attrs(hash=True)
@implementer(IDilationManager)
class Manager(object):
- _S = attrib(... | manager: tidy up repr, leave out keys and some other fields | py |
diff --git a/formly/models.py b/formly/models.py
index <HASH>..<HASH> 100644
--- a/formly/models.py
+++ b/formly/models.py
@@ -375,7 +375,7 @@ class FieldResult(models.Model):
if val and self.question.needs_choices:
if self.question.field_type == Field.CHECKBOX_FIELD:
return u", "... | Fixing answer_value When referencing the model method answer_value() from the template any choice fields would return the object, not the label. This fix now properly returns the label | py |
diff --git a/bezier/curve.py b/bezier/curve.py
index <HASH>..<HASH> 100644
--- a/bezier/curve.py
+++ b/bezier/curve.py
@@ -40,8 +40,8 @@ from bezier import _intersection_helpers
_REPR_TEMPLATE = (
'<{} (degree={:d}, dimension={:d}, start={:g}, end={:g})>')
_FREXP = np.frexp # pylint: disable=no-member
-_MAX_INT... | Requiring higher accuracy for curve intersection. | py |
diff --git a/optoanalysis/optoanalysis/optoanalysis.py b/optoanalysis/optoanalysis/optoanalysis.py
index <HASH>..<HASH> 100644
--- a/optoanalysis/optoanalysis/optoanalysis.py
+++ b/optoanalysis/optoanalysis/optoanalysis.py
@@ -201,7 +201,7 @@ class DataObject():
self.voltage = filedata[:len(fil... | sorted time array creation with .dat files | py |
diff --git a/uncompyle6/parsers/parse3.py b/uncompyle6/parsers/parse3.py
index <HASH>..<HASH> 100644
--- a/uncompyle6/parsers/parse3.py
+++ b/uncompyle6/parsers/parse3.py
@@ -617,7 +617,7 @@ class Python3Parser(PythonParser):
self.add_unique_rule(rule, opname, token.attr, customize)
... | fixed bug with BUILD_CONST_KEY_MAP | py |
diff --git a/host/setup.py b/host/setup.py
index <HASH>..<HASH> 100644
--- a/host/setup.py
+++ b/host/setup.py
@@ -71,7 +71,7 @@ setup(
maintainer=author,
author_email=author_email,
maintainer_email=author_email,
- install_requires=['cython>=0.21', 'pySiLibUSB>=1.0.0', 'bitarray>=0.8.1', 'progressbar-... | MAINT: delte cython version requirement | py |
diff --git a/rtv/terminal.py b/rtv/terminal.py
index <HASH>..<HASH> 100644
--- a/rtv/terminal.py
+++ b/rtv/terminal.py
@@ -59,6 +59,7 @@ class Terminal(object):
self.loader = LoadScreen(self)
self._display = None
self._mailcap_dict = mailcap.getcaps()
+ self._term = os.environ['TERM']
... | #<I> added attribute to hold rxvt-unicode-<I>color variable instead of calling os.environ every time the screen is cleared. Also changed 'is not' to != in if statement | py |
diff --git a/multiupload/fields.py b/multiupload/fields.py
index <HASH>..<HASH> 100644
--- a/multiupload/fields.py
+++ b/multiupload/fields.py
@@ -20,11 +20,11 @@ class MultiUploadMetaInput(forms.ClearableFileInput):
self.multiple = kwargs.pop('multiple', True)
super(MultiUploadMetaInput, self).__init... | Added support for Django <I> As of Django <I>, Support for Widget.render() methods without the renderer argument is removed. <URL> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,7 @@ except ImportError:
from setuptools import setup
setup(
- setup_requires=['d2to1>=0.2.5', 'stsci.distutils>=0.2.2dev'],
+ setup_requires=['d2to1>=0.2.5', 'stsci.distutils>=0.3dev'],
d2to1=True,
... | Bumped the development version of stscil.distutils since it contains significant API changes. Also bumped the version requirement on the sample stsci.tools and acstools packages. git-svn-id: <URL> | py |
diff --git a/landez/tests.py b/landez/tests.py
index <HASH>..<HASH> 100644
--- a/landez/tests.py
+++ b/landez/tests.py
@@ -104,6 +104,18 @@ class TestMBTilesBuilder(unittest.TestCase):
os.remove('small.mbtiles')
os.remove('big.mbtiles')
+ def test_run_jpeg(self):
+ output = 'mq.mbtiles'
+ ... | Test MBTiles build from jpeg tiles (fixes #<I>) | py |
diff --git a/androguard/core/analysis/analysis.py b/androguard/core/analysis/analysis.py
index <HASH>..<HASH> 100644
--- a/androguard/core/analysis/analysis.py
+++ b/androguard/core/analysis/analysis.py
@@ -17,7 +17,8 @@
import re, random, cPickle
-from androguard.core.androconf import error, warning, debug, is_as... | Added functionality to load api specific resources to TaintedPackages | py |
diff --git a/benchexec/model.py b/benchexec/model.py
index <HASH>..<HASH> 100644
--- a/benchexec/model.py
+++ b/benchexec/model.py
@@ -713,7 +713,7 @@ class Run(object):
if tool_status not in [status, result.RESULT_ERROR, result.RESULT_UNKNOWN]:
status = '{} ({})'.format(status, tool_statu... | If tool-info module "error" as result without further information, let BenchExec add more information if return code is not 0. | py |
diff --git a/minio/helpers.py b/minio/helpers.py
index <HASH>..<HASH> 100644
--- a/minio/helpers.py
+++ b/minio/helpers.py
@@ -190,10 +190,16 @@ def get_target_url(endpoint_url, bucket_name=None, object_name=None,
parsed_url = urlsplit(endpoint_url)
# Get new host, scheme.
+ scheme = parsed_url.scheme
... | signv4: Strip port <I> & <I> from url (#<I>) curl & browsers strip port <I> and <I> from host header when a user tries to open a presigned urls, the thing that leads to a signature mismatch error. This PR strips port <I>/<I> by default. | py |
diff --git a/pre_commit/util.py b/pre_commit/util.py
index <HASH>..<HASH> 100644
--- a/pre_commit/util.py
+++ b/pre_commit/util.py
@@ -76,8 +76,11 @@ def no_git_env():
# while running pre-commit hooks in submodules.
# GIT_DIR: Causes git clone to clone wrong thing
# GIT_INDEX_FILE: Causes 'error invalid ... | Adds whitelist for GIT_* env vars containing only GIT_SSH | py |
diff --git a/src/python/pants/backend/jvm/tasks/jvm_compile/rsc/rsc_compile.py b/src/python/pants/backend/jvm/tasks/jvm_compile/rsc/rsc_compile.py
index <HASH>..<HASH> 100644
--- a/src/python/pants/backend/jvm/tasks/jvm_compile/rsc/rsc_compile.py
+++ b/src/python/pants/backend/jvm/tasks/jvm_compile/rsc/rsc_compile.py
@... | Record per-target compile workflow stats when using RscCompile (#<I>) ### Problem We would like to have metrics about how much of a build uses Rsc. ### Solution Record the compile workflow a target uses under `RscCompile` | py |
diff --git a/glue/segmentdb/segmentdb_utils.py b/glue/segmentdb/segmentdb_utils.py
index <HASH>..<HASH> 100644
--- a/glue/segmentdb/segmentdb_utils.py
+++ b/glue/segmentdb/segmentdb_utils.py
@@ -242,7 +242,8 @@ def run_query_segments(doc, proc_id, engine, gps_start_time, gps_end_time, inclu
# Excluded segments are... | Fix for glue-segment_database/<I> build_segment_list had been modified to return two values. The include_segment code was changed accordingly, the exclude_segment code was not. | py |
diff --git a/examples/httpconsumer.py b/examples/httpconsumer.py
index <HASH>..<HASH> 100644
--- a/examples/httpconsumer.py
+++ b/examples/httpconsumer.py
@@ -46,8 +46,8 @@ class ConsumerHandler(util.HTTPHandler):
identity_url = query['identity_url']
print 'making initial request'
... | [project @ Make example server use modified consumer API] | py |
diff --git a/pyperformance/compile.py b/pyperformance/compile.py
index <HASH>..<HASH> 100644
--- a/pyperformance/compile.py
+++ b/pyperformance/compile.py
@@ -516,7 +516,7 @@ class BenchmarkRevision(Application):
if self.options.inherit_environ:
cmd.append('--inherit-environ=%s' % ','.join(self.op... | Fix failure when `benchmarks` in config starts with minus. (#<I>) | py |
diff --git a/odl/trafos/fourier.py b/odl/trafos/fourier.py
index <HASH>..<HASH> 100644
--- a/odl/trafos/fourier.py
+++ b/odl/trafos/fourier.py
@@ -800,9 +800,6 @@ class PyfftwTransform(Operator):
(2, 4)
>>> fft.range.shape
(2, 4)
- >>> print(fft(fft.domain.one())) # FFT of an array of... | BUG: remove FFT-computing doctests - won't work w/o pyfftw | py |
diff --git a/gspread/models.py b/gspread/models.py
index <HASH>..<HASH> 100644
--- a/gspread/models.py
+++ b/gspread/models.py
@@ -13,20 +13,20 @@ try:
except:
from urllib import quote
-from ..base import BaseCell, BaseSpreadsheet
+from .base import BaseCell, BaseSpreadsheet
-from ..exceptions import Workshee... | Fix relative imports. Tests are OK now. | py |
diff --git a/simuvex/s_state.py b/simuvex/s_state.py
index <HASH>..<HASH> 100644
--- a/simuvex/s_state.py
+++ b/simuvex/s_state.py
@@ -204,6 +204,10 @@ class SimState(ana.Storable): # pylint: disable=R0904
return self.get_plugin('solver_engine')
@property
+ def solver(self):
+ return self.get_... | changing the primary name of state.se to state.solver | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,7 +16,7 @@ else:
# For cases where this is being installed from git. This gives the true version number.
from subprocess import check_output
if on_windows:
- version = check_output(""... | Don't bother trying to help on windows | py |
diff --git a/O365/connection.py b/O365/connection.py
index <HASH>..<HASH> 100644
--- a/O365/connection.py
+++ b/O365/connection.py
@@ -329,7 +329,7 @@ class Connection:
return path.exists()
- def get_authorization_url(self, requested_scopes=None):
+ def get_authorization_url(self, requested_scopes=No... | add your own redirect_uri in get_authorization_url I have added this beacause you could to use to own url (django things, in example...) | py |
diff --git a/openquake/db/models.py b/openquake/db/models.py
index <HASH>..<HASH> 100644
--- a/openquake/db/models.py
+++ b/openquake/db/models.py
@@ -1531,15 +1531,14 @@ class GmfSet(djm.Model):
"""
job = self.gmf_collection.output.oq_job
hc = job.hazard_calculation
- job_stats = JobS... | db/models: Minor tweak to the use of job_stats.num_tasks in GMF tree construction. Former-commit-id: dbf<I>c4b7a<I>d6aa4d<I>fb<I> | py |
diff --git a/puz.py b/puz.py
index <HASH>..<HASH> 100644
--- a/puz.py
+++ b/puz.py
@@ -14,6 +14,8 @@ maskstring = 'ICHEATED'
ACROSSDOWN = 'ACROSS&DOWN'
BLACKSQUARE = '.'
+ENCODING = 'ISO-8859-1'
+
extension_header_format = '< 4s H H '
def enum(**enums):
@@ -302,9 +304,8 @@ class PuzzleBuffer:
wraps a data... | Refactored encoding to be a module constant as we'll need it elsewhere | py |
diff --git a/tests/benchmark_accuracy_real_data.py b/tests/benchmark_accuracy_real_data.py
index <HASH>..<HASH> 100755
--- a/tests/benchmark_accuracy_real_data.py
+++ b/tests/benchmark_accuracy_real_data.py
@@ -144,7 +144,7 @@ def load_known_pii(known_pii_locations: List[str], storage_connection_string: Op
for kno... | set the column type on match and match_end to ensure theyre interpreted as str | py |
diff --git a/kplr/api.py b/kplr/api.py
index <HASH>..<HASH> 100644
--- a/kplr/api.py
+++ b/kplr/api.py
@@ -756,7 +756,7 @@ class LightCurve(_datafile):
alpha=0.6)
ax.set_xlim(xlim)
ax.set_ylim(np.min(f1), np.max(f1))
- ax.annotate("relative "+nm+" [ppm]",
+ ... | Minor PEP8 nitpick. | py |
diff --git a/git/repo/base.py b/git/repo/base.py
index <HASH>..<HASH> 100644
--- a/git/repo/base.py
+++ b/git/repo/base.py
@@ -368,7 +368,7 @@ class Repo(object):
:param rev: revision specifier, see git-rev-parse for viable options.
:return: ``git.Commit``"""
if rev is None:
- return self.active_branch.commi... | git.repo.base: substituted all usages of the active_branch property with self.head.* in order to more safely get the current commit. active_branch would only work on non-detached heads | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ license: GNU-GPL2
from setuptools import setup
setup(name='consoleprinter',
- version='93',
+ version='94 ',
description='Console printer with linenumbers, stacktraces, logging, conversions an... | workspace:Monday <I> May <I> (week:<I> day:<I>), <I>:<I>:<I> | py |
diff --git a/bigquery/tests/system.py b/bigquery/tests/system.py
index <HASH>..<HASH> 100644
--- a/bigquery/tests/system.py
+++ b/bigquery/tests/system.py
@@ -381,7 +381,7 @@ class TestBigQuery(unittest.TestCase):
config = bigquery.LoadJobConfig()
config.schema = schema
job = Config.CLIENT.lo... | StringIO to BytesIO (#<I>) | py |
diff --git a/fermipy/jobs/scatter_gather.py b/fermipy/jobs/scatter_gather.py
index <HASH>..<HASH> 100644
--- a/fermipy/jobs/scatter_gather.py
+++ b/fermipy/jobs/scatter_gather.py
@@ -446,8 +446,22 @@ class ScatterGather(Link):
"""
if self._initialize_link is None:
return JobStatus.no_job
... | check completion of init job in scatter gather | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -17,7 +17,7 @@ config = {
'author_email': 'tomas@aparicio.me',
'url': 'https://github.com/h2non/filetype.py',
'download_url': 'https://github.com/h2non/filetype.py/tarball/master',
- 'version': '0.1.3',
+ ... | feat(version): bump to <I> | py |
diff --git a/angr/analyses/cfg/cfg_base.py b/angr/analyses/cfg/cfg_base.py
index <HASH>..<HASH> 100644
--- a/angr/analyses/cfg/cfg_base.py
+++ b/angr/analyses/cfg/cfg_base.py
@@ -1518,7 +1518,7 @@ class CFGBase(Analysis):
to_remove = set()
# Remove all stubs after PLT entries
- if is_arm_arch... | Fix for incorrect condition to filter out ARM plt entries (#<I>) | py |
diff --git a/tacl/statistics_report.py b/tacl/statistics_report.py
index <HASH>..<HASH> 100644
--- a/tacl/statistics_report.py
+++ b/tacl/statistics_report.py
@@ -24,8 +24,8 @@ class StatisticsReport:
:rtype: file object
"""
- self._stats.to_csv(fh, columns=constants.STATISTICS_FIELDNAMES,
- ... | Specify column headers in the statistics report on creation of the pandas DataFrame, rather than on serialising it as CSV. | py |
diff --git a/source/rafcon/mvc/singleton.py b/source/rafcon/mvc/singleton.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/mvc/singleton.py
+++ b/source/rafcon/mvc/singleton.py
@@ -32,6 +32,8 @@ def open_folder(query):
gtk.FILE_CHOOSER_ACTION_SELECT_FOLDER,
... | Allow selection of folders with Enter key By setting the default response of a FileChooserDialog, it can be confirmed using either a double-click or the enter key | py |
diff --git a/ezibpy/ezibpy.py b/ezibpy/ezibpy.py
index <HASH>..<HASH> 100644
--- a/ezibpy/ezibpy.py
+++ b/ezibpy/ezibpy.py
@@ -713,6 +713,8 @@ class ezIBpy():
"symbol": contractString,
"contract": msg.contract,
"order": msg.order,
+ ... | added more qty/side to order metadata | py |
diff --git a/shinken/dispatcher.py b/shinken/dispatcher.py
index <HASH>..<HASH> 100644
--- a/shinken/dispatcher.py
+++ b/shinken/dispatcher.py
@@ -404,7 +404,7 @@ class Dispatcher:
#Brokers should have poller/reactionners links too
if kind == "br... | Fix : rollback, it was not so brok in fact. But must clean all of this, I do not like how dispatcher do all of this. | py |
diff --git a/doc/source/conf.py b/doc/source/conf.py
index <HASH>..<HASH> 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -297,6 +297,7 @@ refresh_autodoc_index()
# -- General configuration ------------------------------------------------
+
# If your documentation needs a minimal Sphinx version, state... | Enabled intersphinx for python | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -48,9 +48,9 @@ copyright = u'2013, Lennart Regebro'
# built documents.
#
# The short X.Y version.
-version = '1.0'
+#version = '1.0'
# The full version, including alpha/beta/rc tags.
-release = '1.0'
+#rele... | The HTML title used the wrong version The trick seems to be to not include the version, full stop. | py |
diff --git a/metsrw/mets.py b/metsrw/mets.py
index <HASH>..<HASH> 100755
--- a/metsrw/mets.py
+++ b/metsrw/mets.py
@@ -132,7 +132,7 @@ class METSDocument(object):
e = etree.Element(utils.lxmlns('mets') + 'metsHdr', CREATEDATE=now)
else:
e = etree.Element(utils.lxmlns('mets') + 'metsHd... | Flake8: fix E<I> continuation line under-indented | py |
diff --git a/censusgeocode/censusgeocode.py b/censusgeocode/censusgeocode.py
index <HASH>..<HASH> 100644
--- a/censusgeocode/censusgeocode.py
+++ b/censusgeocode/censusgeocode.py
@@ -51,7 +51,7 @@ class CensusGeocode(object):
returntype = returntype or self.returntypes[0]
return self._url.format(retur... | Support passing a timeout to requests.get() | py |
diff --git a/typedload/dataloader.py b/typedload/dataloader.py
index <HASH>..<HASH> 100644
--- a/typedload/dataloader.py
+++ b/typedload/dataloader.py
@@ -32,15 +32,6 @@ NONETYPE = type(None)
T = TypeVar('T')
-# This is a workaround for an incompatibility between 3.5.2 and previous, and 3.5.3 and later
-try:
- ... | Move my function up It was always raising | py |
diff --git a/pulsar/scripts/chown_working_directory.py b/pulsar/scripts/chown_working_directory.py
index <HASH>..<HASH> 100644
--- a/pulsar/scripts/chown_working_directory.py
+++ b/pulsar/scripts/chown_working_directory.py
@@ -1,10 +1,6 @@
from os import system
from os.path import join, abspath
-try:
- from Config... | Reuse pulsar.daemon's logic for loading Pulsar config in pulsar.scripts.chown_working_directory. Reduces duplication and places more logic where it can be tested more easily. | py |
diff --git a/tests/test_rdd.py b/tests/test_rdd.py
index <HASH>..<HASH> 100644
--- a/tests/test_rdd.py
+++ b/tests/test_rdd.py
@@ -31,7 +31,11 @@ dpark_master = os.environ.get("TEST_DPARK_MASTER", "local")
# to test on mesos,
# export TEST_DPARK_MASTER=mesos
# export TMPDIR=/path/on/moosefs
-print("test with dpark_m... | Print PYTHONPATH at start of test. | py |
diff --git a/asv/graph.py b/asv/graph.py
index <HASH>..<HASH> 100644
--- a/asv/graph.py
+++ b/asv/graph.py
@@ -124,9 +124,8 @@ class Graph(object):
The implementation must match asv.js:graph_to_path
"""
- parts = ['graphs']
+ parts = []
l = list(six.iteritems(params))
- ... | Match `Graph.get_file_path` with `asv.js:graph_to_path` | py |
diff --git a/cloudvolume/frontends/precomputed.py b/cloudvolume/frontends/precomputed.py
index <HASH>..<HASH> 100644
--- a/cloudvolume/frontends/precomputed.py
+++ b/cloudvolume/frontends/precomputed.py
@@ -316,12 +316,19 @@ class CloudVolumePrecomputed(object):
return self.cache.path
@property
+ def ndim(se... | redesign: cv.shape returns a tuple + cv.ndim (BREAKING) (#<I>) This will provide numpy compatibility, and in turn Dask comaptibility. Resolves #<I> | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.