diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/quantecon/models/solow/model.py b/quantecon/models/solow/model.py
index <HASH>..<HASH> 100644
--- a/quantecon/models/solow/model.py
+++ b/quantecon/models/solow/model.py
@@ -75,7 +75,6 @@ References
@date : 2014-08-18
TODO:
-2. Write more tests!
5. Finish section on solving Solow model in demo noteboo... | Fixed some typos in the test_solow.py that were causing fails. | py |
diff --git a/examples/ea/ea.py b/examples/ea/ea.py
index <HASH>..<HASH> 100644
--- a/examples/ea/ea.py
+++ b/examples/ea/ea.py
@@ -41,12 +41,14 @@ class EA:
return generation
def crossover(self, parents) -> Chromosome:
- child = Chromosome(np.zeros(parents[0].values.shape))
-
- for i, v in... | made crossover into a one-liner | py |
diff --git a/tests/run.py b/tests/run.py
index <HASH>..<HASH> 100755
--- a/tests/run.py
+++ b/tests/run.py
@@ -3,11 +3,6 @@
import sys
sys.path.insert(0, '..')
-import os
import nose
-mac_library_path = '/Users/dustin/build/libarchive/build/libarchive'
-if os.path.exists(mac_library_path) is True:
- os.enviro... | Removed environment-specific test logic. | py |
diff --git a/wpull/async.py b/wpull/async.py
index <HASH>..<HASH> 100644
--- a/wpull/async.py
+++ b/wpull/async.py
@@ -84,6 +84,7 @@ def wait_future(future, seconds=None):
future = yield async_result.get(io_loop.time() + seconds)
result = future.result()
except toro.Timeout as error:
+ fut... | async: Ensure future is consumed after timeout. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -114,7 +114,7 @@ if os.path.exists('CHANGES (links).txt'):
else:
# but if the release script has not run, fall back to the source file
changes_file = open('CHANGES.txt')
-long_description = readme_file.read() + chan... | Make sure there's a blank line between files | py |
diff --git a/salt/modules/artifactory.py b/salt/modules/artifactory.py
index <HASH>..<HASH> 100644
--- a/salt/modules/artifactory.py
+++ b/salt/modules/artifactory.py
@@ -468,7 +468,7 @@ def __save_artifact(artifact_url, target_file, headers):
try:
request = urllib.request.Request(artifact_url, None, head... | Reverted salt.utils.files.fopen change - unsure how that change actually happened | py |
diff --git a/tests/test_utils.py b/tests/test_utils.py
index <HASH>..<HASH> 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -1,5 +1,5 @@
try:
from unittest2 import TestCase, SkipTest
except ImportError:
- from unittest import TestCase SkipTest
+ from unittest import TestCase, SkipTest | TRIVIAL Fixing import of SkipTest | py |
diff --git a/napalm_junos/junos.py b/napalm_junos/junos.py
index <HASH>..<HASH> 100644
--- a/napalm_junos/junos.py
+++ b/napalm_junos/junos.py
@@ -1023,6 +1023,9 @@ class JunOSDriver(NetworkDriver):
if isinstance(test_param_value, float):
test_results[test_param_name] = test_param_... | False is not True. never | py |
diff --git a/py/selenium/webdriver/support/relative_locator.py b/py/selenium/webdriver/support/relative_locator.py
index <HASH>..<HASH> 100644
--- a/py/selenium/webdriver/support/relative_locator.py
+++ b/py/selenium/webdriver/support/relative_locator.py
@@ -27,9 +27,9 @@ def with_tag_name(tag_name):
class RelativeB... | [py] Fixing relative locator constructor | py |
diff --git a/aversion.py b/aversion.py
index <HASH>..<HASH> 100644
--- a/aversion.py
+++ b/aversion.py
@@ -271,8 +271,7 @@ class Result(object):
populated.
"""
- return (self.version is not None and self.ctype is not None and
- self.orig_ctype is not None)
+ return self.... | Once the ctype is set, the orig_ctype cannot be changed. | py |
diff --git a/libaio/__init__.py b/libaio/__init__.py
index <HASH>..<HASH> 100644
--- a/libaio/__init__.py
+++ b/libaio/__init__.py
@@ -37,7 +37,7 @@ class EventFD(object):
flags (int)
Bit mask of EFD_* constants.
"""
- self._file = os.fdopen(eventfd.eventfd(initval, flags), 'r+b')
... | Fix EventFD instanciation. | py |
diff --git a/cablemap.tm/cablemap/tm/handler.py b/cablemap.tm/cablemap/tm/handler.py
index <HASH>..<HASH> 100644
--- a/cablemap.tm/cablemap/tm/handler.py
+++ b/cablemap.tm/cablemap/tm/handler.py
@@ -175,6 +175,7 @@ class MIOCableHandler(object):
route, name, precedence, mcn = recipient.route, recipient.name, r... | Forgot the cable itself in the assoc | py |
diff --git a/test/test_onnx.py b/test/test_onnx.py
index <HASH>..<HASH> 100644
--- a/test/test_onnx.py
+++ b/test/test_onnx.py
@@ -299,6 +299,10 @@ class ONNXExporterTester(unittest.TestCase):
# This test also compares both paste_masks_in_image and _onnx_paste_masks_in_image
# (since jit_trace witll call _onn... | Disable Profiling in Failing Test (#<I>) * disable test * disable profiling * Update test_onnx.py | py |
diff --git a/estnltk/wordnet/wordnet.py b/estnltk/wordnet/wordnet.py
index <HASH>..<HASH> 100644
--- a/estnltk/wordnet/wordnet.py
+++ b/estnltk/wordnet/wordnet.py
@@ -2,7 +2,7 @@ import sqlite3
import os.path
import math
import networkx as nx
-from typing import Union
+from typing import Union, List
from estnltk.wo... | Updated Wordnet: added query for all relation types | py |
diff --git a/.travis/complementary/api_file_generation.py b/.travis/complementary/api_file_generation.py
index <HASH>..<HASH> 100644
--- a/.travis/complementary/api_file_generation.py
+++ b/.travis/complementary/api_file_generation.py
@@ -15,7 +15,6 @@ from PyFunceble import DomainAvailabilityChecker
from PyFunceble.c... | Freeze number of workers to generate and block output queue generation. | py |
diff --git a/engine/handler.py b/engine/handler.py
index <HASH>..<HASH> 100644
--- a/engine/handler.py
+++ b/engine/handler.py
@@ -60,6 +60,19 @@ class Handler(tornado.web.RequestHandler, dpEngine):
self.finish_with_error(404, 'Page Not Found')
return False
+ temp_paths = {}
+ ... | fixed issue with dot(.) url handling. | py |
diff --git a/perf/_utils.py b/perf/_utils.py
index <HASH>..<HASH> 100644
--- a/perf/_utils.py
+++ b/perf/_utils.py
@@ -355,7 +355,10 @@ def python_implementation():
def python_has_jit():
- return (python_implementation() == 'pypy')
+ if python_implementation() == 'pypy':
+ return sys.pypy_translation_... | Support PyPy compiled without JIT python_has_jit() now supports PyPy compiled without JIT: check sys.pypy_translation_info["translation.jit"]. | py |
diff --git a/src/foundations/core.py b/src/foundations/core.py
index <HASH>..<HASH> 100644
--- a/src/foundations/core.py
+++ b/src/foundations/core.py
@@ -57,6 +57,7 @@ __all__ = ["THREADS_IDENTIFIERS",
"getModule",
"getObjectName",
"executionTrace",
+ "memoize",
"NestedAttribute",
"Structure",
... | Add "foundations.core.memoize" decorator function. | py |
diff --git a/txaws/client/base.py b/txaws/client/base.py
index <HASH>..<HASH> 100644
--- a/txaws/client/base.py
+++ b/txaws/client/base.py
@@ -37,7 +37,7 @@ def error_wrapper(error, errorClass):
error.raiseException()
try:
fallback_error = errorClass(
- xml_payload, err... | - Minor change to quell warnings on Python <I>. | py |
diff --git a/pelix/framework.py b/pelix/framework.py
index <HASH>..<HASH> 100644
--- a/pelix/framework.py
+++ b/pelix/framework.py
@@ -43,7 +43,6 @@ import logging
import os
import sys
import threading
-from manifest import Bundle
ACTIVATOR = "activator" | Removed an import added by PyDev from manifest import Bundle -> nothing related to Pelix | py |
diff --git a/lib/python/voltcli/voltadmin.d/stop.py b/lib/python/voltcli/voltadmin.d/stop.py
index <HASH>..<HASH> 100644
--- a/lib/python/voltcli/voltadmin.d/stop.py
+++ b/lib/python/voltcli/voltadmin.d/stop.py
@@ -94,7 +94,7 @@ def stop(runner):
if not proex.isTimeout:
raise
... | stop node messages to inform on disabled export targets | py |
diff --git a/openpnm/algorithms/GenericTransport.py b/openpnm/algorithms/GenericTransport.py
index <HASH>..<HASH> 100644
--- a/openpnm/algorithms/GenericTransport.py
+++ b/openpnm/algorithms/GenericTransport.py
@@ -21,7 +21,7 @@ def_set = {'phase': None,
'solver_preconditioner': 'jacobi',
'solve... | Increased maxiter to <I> from <I>, necessary for large systems. | py |
diff --git a/omego/artifacts.py b/omego/artifacts.py
index <HASH>..<HASH> 100644
--- a/omego/artifacts.py
+++ b/omego/artifacts.py
@@ -52,6 +52,7 @@ class Artifacts(object):
unzipped = filename.replace(".zip", "")
if os.path.exists(unzipped):
+ self.create_symlink(unzipped)
r... | Create new symlink if already downloaded | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -52,5 +52,5 @@ setup(
'Programming Language :: Python'
],
ext_modules=ext_modules,
- python_requires='=2.7, =3.4, =3.5, =3.6'
+ python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*'
) | Update python_requires in setup.py | py |
diff --git a/salt/modules/cron.py b/salt/modules/cron.py
index <HASH>..<HASH> 100644
--- a/salt/modules/cron.py
+++ b/salt/modules/cron.py
@@ -136,8 +136,10 @@ def raw_cron(user):
cmd = 'crontab -l {0}'.format(user)
else:
cmd = 'crontab -l -u {0}'.format(user)
- return __salt__['cmd.run_stdout... | Remove first three lines if starting with "DO NOT EDIT THIS FILE" Patch for #<I> | py |
diff --git a/django_mfa/views.py b/django_mfa/views.py
index <HASH>..<HASH> 100644
--- a/django_mfa/views.py
+++ b/django_mfa/views.py
@@ -57,7 +57,7 @@ def enable_mfa(request):
secret_key=request.POST['secret_key'])
messages.success(request, "You have successfull... | Don't set the remember-my-browser cookie when MFA is enabled. Make the user enter the code on next login Set cookie secure flag based on DEBUG | py |
diff --git a/tests/support/gitfs.py b/tests/support/gitfs.py
index <HASH>..<HASH> 100644
--- a/tests/support/gitfs.py
+++ b/tests/support/gitfs.py
@@ -654,8 +654,9 @@ class GitPillarHTTPTestBase(GitPillarTestBase, WebserverMixin):
if proc is not None:
try:
proc.send_si... | Use Sigkill and add time.sleep befor check | py |
diff --git a/spyder_notebook/utils/nbopen.py b/spyder_notebook/utils/nbopen.py
index <HASH>..<HASH> 100644
--- a/spyder_notebook/utils/nbopen.py
+++ b/spyder_notebook/utils/nbopen.py
@@ -12,6 +12,7 @@ import atexit
import os
import os.path as osp
import subprocess
+import sys
import time
from notebook import not... | Do not call the jupyter executable when opening notebooks This should make it more robust in case the jupyter executable is not in the path. | py |
diff --git a/pulsar/client/transport/requests.py b/pulsar/client/transport/requests.py
index <HASH>..<HASH> 100644
--- a/pulsar/client/transport/requests.py
+++ b/pulsar/client/transport/requests.py
@@ -1,7 +1,7 @@
from __future__ import absolute_import
try:
from galaxy import eggs
- eggs.require("requets")
+... | Fix typo Nate caught in Galaxy. | py |
diff --git a/src/transformers/models/auto/feature_extraction_auto.py b/src/transformers/models/auto/feature_extraction_auto.py
index <HASH>..<HASH> 100644
--- a/src/transformers/models/auto/feature_extraction_auto.py
+++ b/src/transformers/models/auto/feature_extraction_auto.py
@@ -69,7 +69,7 @@ FEATURE_EXTRACTOR_MAPPI... | fix a possible typo in auto feature extraction (#<I>) | py |
diff --git a/hug/route.py b/hug/route.py
index <HASH>..<HASH> 100644
--- a/hug/route.py
+++ b/hug/route.py
@@ -39,11 +39,8 @@ from hug.routing import URLRouter as http
class Object(http):
"""Defines a router for classes and objects"""
- def __init__(self, **route):
- if 'requires' in route:
- ... | Fix root object class based route to have same signature | py |
diff --git a/lib/git/utils.py b/lib/git/utils.py
index <HASH>..<HASH> 100644
--- a/lib/git/utils.py
+++ b/lib/git/utils.py
@@ -166,7 +166,12 @@ class LockFile(object):
"""
if not self._has_lock():
return
- os.remove(self._lock_file_path())
+
+ # if someone removed our file beforhand, lets just flag this ... | LockFile: release_lock now checks whether the lockfile to be removed still exists. Previously it would just fail | py |
diff --git a/git_aggregator/main.py b/git_aggregator/main.py
index <HASH>..<HASH> 100644
--- a/git_aggregator/main.py
+++ b/git_aggregator/main.py
@@ -129,10 +129,12 @@ def get_parser():
nargs='?',
default='aggregate',
help='aggregate (default): run the aggregation process.\n'
- '... | Finish show-all-prs command | py |
diff --git a/twitter_ads/enum.py b/twitter_ads/enum.py
index <HASH>..<HASH> 100644
--- a/twitter_ads/enum.py
+++ b/twitter_ads/enum.py
@@ -147,6 +147,10 @@ CREATIVE_TYPE = enum(
BANNER='BANNER',
INTERSTITIAL='INTERSTITIAL',
PREROLL='PREROLL',
- VAST_PREROLL='VAST_PREROLL'
-
+ VAST_PREROLL='VAST_PRE... | additional creative types (#<I>) | py |
diff --git a/src/python/dxpy/utils/describe.py b/src/python/dxpy/utils/describe.py
index <HASH>..<HASH> 100644
--- a/src/python/dxpy/utils/describe.py
+++ b/src/python/dxpy/utils/describe.py
@@ -24,6 +24,7 @@ containers, dataobjects, apps, and jobs).
import datetime, time, json, math, sys
from collections import de... | [PTFM-<I>] describe execDepends better | py |
diff --git a/pgpy/pgp.py b/pgpy/pgp.py
index <HASH>..<HASH> 100644
--- a/pgpy/pgp.py
+++ b/pgpy/pgp.py
@@ -262,6 +262,15 @@ class PGPSignature(Armorable, ParentRef, PGPObject):
return self._signature.signer
@property
+ def signer_fingerprint(self):
+ """
+ The fingerprint of the key tha... | Add .signer_fingerprint property to PGPSignature. - This returns the issuer fingerprint if the IssuerFingerprint subpacket is present, otherwise empty string. | py |
diff --git a/fix_yahoo_finance/__init__.py b/fix_yahoo_finance/__init__.py
index <HASH>..<HASH> 100644
--- a/fix_yahoo_finance/__init__.py
+++ b/fix_yahoo_finance/__init__.py
@@ -221,6 +221,7 @@ def download(tickers, start=None, end=None, as_panel=True,
print("\nThe following tickers failed to download:\n",
... | Solved issue #<I> Separating data frames on multiple requests by the user. | py |
diff --git a/boundary/alarm_update.py b/boundary/alarm_update.py
index <HASH>..<HASH> 100644
--- a/boundary/alarm_update.py
+++ b/boundary/alarm_update.py
@@ -13,6 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
+
+import json
+
from boundary import ... | Add required id to data payload when updating an alarm definition | py |
diff --git a/spyderlib/utils/introspection/manager.py b/spyderlib/utils/introspection/manager.py
index <HASH>..<HASH> 100644
--- a/spyderlib/utils/introspection/manager.py
+++ b/spyderlib/utils/introspection/manager.py
@@ -48,9 +48,14 @@ class PluginManager(QObject):
self.info = None
self.request = N... | Buffer incoming messages until the previous one finishes | py |
diff --git a/tests/test_pulla.py b/tests/test_pulla.py
index <HASH>..<HASH> 100644
--- a/tests/test_pulla.py
+++ b/tests/test_pulla.py
@@ -108,6 +108,16 @@ class test_do_pull_in(unittest.TestCase):
mock_get_formatted_status_message.assert_called_once_with(self.directory, 'Fail')
+class test_get_git_version... | Ensure correct splitting is done with version number | py |
diff --git a/phono3py/phonon3/imag_self_energy.py b/phono3py/phonon3/imag_self_energy.py
index <HASH>..<HASH> 100644
--- a/phono3py/phonon3/imag_self_energy.py
+++ b/phono3py/phonon3/imag_self_energy.py
@@ -485,6 +485,7 @@ class ImagSelfEnergy(object):
def delete_integration_weights(self):
self._g = None
... | Set None to pp_strength to free memory (hopefully). | py |
diff --git a/pytds/dbapi.py b/pytds/dbapi.py
index <HASH>..<HASH> 100644
--- a/pytds/dbapi.py
+++ b/pytds/dbapi.py
@@ -15,7 +15,7 @@ import errno
import uuid
from .tds import (
Error, LoginError, DatabaseError,
- InterfaceError, TimeoutError,
+ InterfaceError, TimeoutError, OperationalError,
TDS_PENDI... | ignore error 'The ROLLBACK TRANSACTION request has no corresponding BEGIN TRANSACTION.' in rollback method | py |
diff --git a/cdflib/epochs.py b/cdflib/epochs.py
index <HASH>..<HASH> 100644
--- a/cdflib/epochs.py
+++ b/cdflib/epochs.py
@@ -413,11 +413,12 @@ class CDFepoch:
count = len(new_tt2000)
toutcs = np.zeros((count, 9)).astype(int)
nansecs = np.zeros((count)).astype(int)
+ datxs = [CDFepoch... | Pre-caclulate datxs | py |
diff --git a/km3pipe/core.py b/km3pipe/core.py
index <HASH>..<HASH> 100644
--- a/km3pipe/core.py
+++ b/km3pipe/core.py
@@ -84,6 +84,7 @@ class Pipeline(object):
def drain(self, cycles=None):
"""Execute _drain while trapping KeyboardInterrupt"""
+ log.info("Now draining...")
signal.signal... | Adds log.info to drain() | py |
diff --git a/knxip/tests/test_core.py b/knxip/tests/test_core.py
index <HASH>..<HASH> 100644
--- a/knxip/tests/test_core.py
+++ b/knxip/tests/test_core.py
@@ -9,8 +9,8 @@ class KNXIPCoreTestCase(unittest.TestCase):
"""Does the group address parser work correctly?"""
self.assertEquals(parse_group_addre... | Bugfix in test: 2-layer group addresses were handled incorrectly | py |
diff --git a/pyspot/pyspot.py b/pyspot/pyspot.py
index <HASH>..<HASH> 100644
--- a/pyspot/pyspot.py
+++ b/pyspot/pyspot.py
@@ -133,9 +133,11 @@ class HubSpotLeadsClient(HubSpotClient):
def get_lead(self, lead_guid):
return self._make_request('list/', {'guids[0]': lead_guid})
- def search_leads(self, term, ... | break out more general listing tool for leads | py |
diff --git a/buildbot/scripts/runner.py b/buildbot/scripts/runner.py
index <HASH>..<HASH> 100644
--- a/buildbot/scripts/runner.py
+++ b/buildbot/scripts/runner.py
@@ -765,7 +765,6 @@ class DebugClientOptions(OptionsWithOptionsFile):
["master", "m", None,
"Location of the buildmaster's slaveport (host... | (fixes #<I>) fix what appears to be some debug code that was inadvertently left in | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -14,6 +14,12 @@ setup(
author_email="admin@analystcollective.org",
url="https://github.com/fishtown-analytics/dbt",
packages=find_packages(),
+ package_data={
+ 'dbt': [
+ 'include/global_pr... | include global_project via setup.py | py |
diff --git a/sphinx-jsonschema/__init__.py b/sphinx-jsonschema/__init__.py
index <HASH>..<HASH> 100644
--- a/sphinx-jsonschema/__init__.py
+++ b/sphinx-jsonschema/__init__.py
@@ -47,7 +47,8 @@ class JsonSchema(Directive):
'lift_definitions': flag,
'auto_reference': flag,
... | New option "encoding" for parsing schemas from file. | py |
diff --git a/eliot/tests/test_output.py b/eliot/tests/test_output.py
index <HASH>..<HASH> 100644
--- a/eliot/tests/test_output.py
+++ b/eliot/tests/test_output.py
@@ -241,7 +241,7 @@ class MemoryLoggerTests(TestCase):
L{MemoryLogger.write} can be called from multiple threads concurrently.
"""
... | Bump up the message count for extra confidence. It's still really, really fast. | py |
diff --git a/python/setup.py b/python/setup.py
index <HASH>..<HASH> 100644
--- a/python/setup.py
+++ b/python/setup.py
@@ -135,7 +135,7 @@ write_version_file(version_info)
author_info = get_author_info()
setuptools.setup(
- name='opencc-py',
+ name='OpenCC',
version=version_info,
author=author_info[... | Rename python binding to 'OpenCC'. | py |
diff --git a/spinoff/component/transport/inmem.py b/spinoff/component/transport/inmem.py
index <HASH>..<HASH> 100644
--- a/spinoff/component/transport/inmem.py
+++ b/spinoff/component/transport/inmem.py
@@ -69,7 +69,7 @@ class InMemoryRouting(object):
dealer.put(outbox=inbox, message=message)
... | Clarified the RoutingException when transport.inmem gets a bad routing_key | py |
diff --git a/src/rez/resolver.py b/src/rez/resolver.py
index <HASH>..<HASH> 100644
--- a/src/rez/resolver.py
+++ b/src/rez/resolver.py
@@ -223,8 +223,17 @@ class Resolver(object):
new_state = variant_states.get(variant)
if new_state is None:
- repo = variant.resour... | invalidate memcache if a package file has been deleted / moved / etc | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100755
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -31,6 +31,7 @@ MOCK_MODULES = ['numpy',
'parmed.periodic_table',
'scipy',
'scipy.spatial',
+ 'scipy.constants',
'numpy.linalg']... | Add scipy.constants to conf.py | py |
diff --git a/pyrogram/client/ext/utils.py b/pyrogram/client/ext/utils.py
index <HASH>..<HASH> 100644
--- a/pyrogram/client/ext/utils.py
+++ b/pyrogram/client/ext/utils.py
@@ -215,7 +215,7 @@ def parse_channel_chat(channel: types.Channel) -> pyrogram_types.Chat:
title=channel.title,
username=getattr(ch... | The restriction_reason field is not always available | py |
diff --git a/tests/tests.py b/tests/tests.py
index <HASH>..<HASH> 100644
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -149,6 +149,30 @@ class MarkupFieldFormTests(TestCase):
AdminMarkItUpWidget)
+class MarkupFieldFormSaveTests(TestCase):
+
+ def setUp(self):
+ self.data = {'titl... | Added tests to reproduce Django <I> issues | py |
diff --git a/host/daq/readout_utils.py b/host/daq/readout_utils.py
index <HASH>..<HASH> 100644
--- a/host/daq/readout_utils.py
+++ b/host/daq/readout_utils.py
@@ -34,6 +34,9 @@ def interpret_pixel_data(data, dc, pixel_array, invert=True):
address_split = np.array_split(address, np.where(np.diff(address.astype(np.i... | ENH: sanity check added | py |
diff --git a/perfscale_controller_stress.py b/perfscale_controller_stress.py
index <HASH>..<HASH> 100755
--- a/perfscale_controller_stress.py
+++ b/perfscale_controller_stress.py
@@ -51,7 +51,7 @@ def deploy_swarm_to_new_model(client, model_name):
before_add = datetime.utcnow()
new_client = client.add_model... | Don't use series for bundle. | py |
diff --git a/wily/decorators.py b/wily/decorators.py
index <HASH>..<HASH> 100644
--- a/wily/decorators.py
+++ b/wily/decorators.py
@@ -9,6 +9,12 @@ from wily import __version__
def add_version(f):
+ """
+ Add the version of wily to the help heading.
+
+ :param f: function to decorate
+ :return: decorat... | fix: added docstring to public function | py |
diff --git a/test/test_vim.py b/test/test_vim.py
index <HASH>..<HASH> 100644
--- a/test/test_vim.py
+++ b/test/test_vim.py
@@ -90,9 +90,9 @@ def test_vars(vim):
def test_options(vim):
- assert vim.options['listchars'] == 'tab:> ,trail:-,nbsp:+'
- vim.options['listchars'] = 'tab:xy'
- assert vim.options['l... | test: fix test_options IIRC this became more strict at some point: since 'listchars' is window-local, it is not resolved by vim.options (nvim_get_option). | py |
diff --git a/commands.py b/commands.py
index <HASH>..<HASH> 100644
--- a/commands.py
+++ b/commands.py
@@ -168,8 +168,8 @@ def release(config, version=None, date=None, tag_name=None, next_version=None, p
abort(5, 'Could not find section in change log')
printer.info('Version:', version)
- printer.... | In release command, show tag name right after version These are usually the same. Showing them together makes it easier to see when they're different. | py |
diff --git a/web/file.py b/web/file.py
index <HASH>..<HASH> 100644
--- a/web/file.py
+++ b/web/file.py
@@ -8,9 +8,12 @@ import web
routes = {}
class FileHandler(web.HTTPHandler):
+ filename = None
+
def __init__(self, request, response, groups):
web.HTTPHandler.__init__(self, request, response, groups)
- self... | Add support for subclasses specifying a constant filename | py |
diff --git a/discord/utils.py b/discord/utils.py
index <HASH>..<HASH> 100644
--- a/discord/utils.py
+++ b/discord/utils.py
@@ -31,6 +31,7 @@ from base64 import b64encode
import asyncio
import json
+DISCORD_EPOCH = 1420070400000
class cached_property:
def __init__(self, function):
@@ -73,6 +74,12 @@ def pars... | Add util method to extract creation date from discord ids | py |
diff --git a/regions/io/tests/test_ds9_language.py b/regions/io/tests/test_ds9_language.py
index <HASH>..<HASH> 100644
--- a/regions/io/tests/test_ds9_language.py
+++ b/regions/io/tests/test_ds9_language.py
@@ -4,7 +4,14 @@ from ..read_ds9 import read_ds9
from ..write_ds9 import objects_to_ds9_string
from astropy.uti... | add xfail to tests | py |
diff --git a/internetarchive/files.py b/internetarchive/files.py
index <HASH>..<HASH> 100644
--- a/internetarchive/files.py
+++ b/internetarchive/files.py
@@ -32,6 +32,7 @@ import logging
import socket
import six.moves.urllib as urllib
+import six
from requests.exceptions import HTTPError, RetryError, ConnectTimeo... | Fixed bug where get_file in PY2 would not work on unicode names | py |
diff --git a/openprovider/models.py b/openprovider/models.py
index <HASH>..<HASH> 100644
--- a/openprovider/models.py
+++ b/openprovider/models.py
@@ -161,7 +161,17 @@ class RegistryMessage(Model):
@property
def date(self):
- return datetime.datetime.strptime(str(self._obj.date), '%Y-%m-%d %H:%M:%S')... | Allow date to be overridden through the constructor This makes the following possible: RegistryMessage(date='<I>-<I>-<I> <I>:<I>:<I>') | py |
diff --git a/deploy-cluster-aws/run_and_tag.py b/deploy-cluster-aws/run_and_tag.py
index <HASH>..<HASH> 100644
--- a/deploy-cluster-aws/run_and_tag.py
+++ b/deploy-cluster-aws/run_and_tag.py
@@ -37,7 +37,7 @@ for _ in range(nodes): # 0, 1, ..., (nodes-1) = nodes items
reservation = conn.run_instances(
... | Change AWS key_name to bigchaindb in run_and_tag.py | py |
diff --git a/djstripe/models/api.py b/djstripe/models/api.py
index <HASH>..<HASH> 100644
--- a/djstripe/models/api.py
+++ b/djstripe/models/api.py
@@ -60,6 +60,11 @@ class APIKey(StripeModel):
def __str__(self):
return self.name or self.secret_redacted
+ def clean(self):
+ if self.type == APIK... | Clean APIKey on creation by automatically refreshing the account if possible This enables the use case of creating a new APIKey from the Django administration, which will subsequently automatically fetch and set the matching Account object. | py |
diff --git a/lucid/optvis/transform.py b/lucid/optvis/transform.py
index <HASH>..<HASH> 100644
--- a/lucid/optvis/transform.py
+++ b/lucid/optvis/transform.py
@@ -137,8 +137,9 @@ def collapse_alpha_random(sd=0.5):
def _rand_select(xs, seed=None):
- rand_n = tf.random_uniform((), 0, len(xs), "int32", seed=seed)
... | Add `crop_or_pad_to(height, width)` to transforms to more easily support models which require precise input shapes | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -101,6 +101,7 @@ html_theme = 'alabaster'
# further. For a list of options available for each theme, see the
# documentation.
#
+# http://alabaster.readthedocs.io/en/latest/customization.html
html_theme_op... | added link to alabaster docs in doc conf | py |
diff --git a/flange/dbengine.py b/flange/dbengine.py
index <HASH>..<HASH> 100644
--- a/flange/dbengine.py
+++ b/flange/dbengine.py
@@ -16,7 +16,7 @@ dbengine_schema = {
}
def dbengine_create_func(config):
- url_format_string = "{:s}://{:s}:{:s}@{:s}:{:s}/{:s}?charset=utf8"
+ url_format_string = "{:s}://{:s}:{... | postgres didn't like the charset param that was hard-coded in url | py |
diff --git a/flask_socketio/cli.py b/flask_socketio/cli.py
index <HASH>..<HASH> 100644
--- a/flask_socketio/cli.py
+++ b/flask_socketio/cli.py
@@ -19,8 +19,11 @@ import click
@click.option('--eager-loading/--lazy-loader', default=None,
help='Enable or disable eager loading. By default eager '
... | support --with(out)-threads for compatibility (#<I>) | py |
diff --git a/lavalink/Client.py b/lavalink/Client.py
index <HASH>..<HASH> 100644
--- a/lavalink/Client.py
+++ b/lavalink/Client.py
@@ -136,16 +136,12 @@ class Client:
except asyncio.TimeoutError:
raise NoNodesAvailable
if guild_id in self.players:
- log.debug('Found player i... | hahayes devoxin is a big buli | py |
diff --git a/asv/plugins/git.py b/asv/plugins/git.py
index <HASH>..<HASH> 100644
--- a/asv/plugins/git.py
+++ b/asv/plugins/git.py
@@ -153,11 +153,9 @@ class Git(Repo):
if not name:
return None
except util.ProcessError as err:
- if err.retcode == 128:
- #... | git: don't try to deal with git-name-rev failure types The specific exit codes appear to vary, so it's better to not try to interpret them. | py |
diff --git a/rootpy/memory/keepalive.py b/rootpy/memory/keepalive.py
index <HASH>..<HASH> 100644
--- a/rootpy/memory/keepalive.py
+++ b/rootpy/memory/keepalive.py
@@ -24,9 +24,10 @@ def keepalive(nurse, *patients):
"""
if DISABLED:
return
- for p in patients:
- log.debug("Keeping {0} alive ... | fix issues like #<I>: unable use keepalive with unhashable type. Most likely due to mixing bare PyROOT and rootpy | py |
diff --git a/test/test_create.py b/test/test_create.py
index <HASH>..<HASH> 100644
--- a/test/test_create.py
+++ b/test/test_create.py
@@ -59,6 +59,7 @@ class Tests(unittest.TestCase):
def test_rerooted_tree_with_node_names(self):
with tempdir.TempDir() as tmp:
with tempdir.TempDir() as tmp2:... | merged <I>s_hmm_fix | py |
diff --git a/salt/client.py b/salt/client.py
index <HASH>..<HASH> 100644
--- a/salt/client.py
+++ b/salt/client.py
@@ -71,7 +71,7 @@ class LocalClient(object):
'''
def __init__(self, c_path='/etc/salt/master', mopts=None):
if mopts:
- self.opts - mopts
+ self.opts = mopts
... | Fix typo in pre-passing opts to localclient | py |
diff --git a/click_shell/version.py b/click_shell/version.py
index <HASH>..<HASH> 100644
--- a/click_shell/version.py
+++ b/click_shell/version.py
@@ -2,6 +2,8 @@
click_shell.version
"""
+# pylint: disable=redefined-variable-type
+
import datetime
import os
import subprocess
@@ -64,7 +66,7 @@ def get_git_changes... | pylint should finally be happy | py |
diff --git a/buchner/cmdline.py b/buchner/cmdline.py
index <HASH>..<HASH> 100644
--- a/buchner/cmdline.py
+++ b/buchner/cmdline.py
@@ -45,8 +45,8 @@ def perror(s):
print s
-def create_project(command, argv):
- parser = build_parser('%prog createproject <PROJECTNAME>')
+def create(command, argv):
+ parser... | Change createproject to create "create" is shorter and what else is someone going to create with buchner? A chocolate cake? | py |
diff --git a/openquake/commonlib/readinput.py b/openquake/commonlib/readinput.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/readinput.py
+++ b/openquake/commonlib/readinput.py
@@ -907,6 +907,7 @@ def get_gmfs(oqparam):
if missing_eids:
raise InvalidFile('Missing eids in the gmfs.csv fil... | Added an assertion [skip hazardlib] | py |
diff --git a/graphene_django/views.py b/graphene_django/views.py
index <HASH>..<HASH> 100644
--- a/graphene_django/views.py
+++ b/graphene_django/views.py
@@ -282,6 +282,8 @@ class GraphQLView(View):
raise HttpError(HttpResponseBadRequest('Variables are invalid JSON.'))
operation_name = requ... | Fix graphiql refreshing operationName undefined operationName is serialized into the query string as a string. When getting the query value for operationName, we need to convert string "null" into None. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,7 @@ setup(
author_email='miguelgrinberg50@gmail.com',
description='Engine.IO server',
long_description=long_description,
- packages=find_packages(),
+ packages=["engineio"],
zip_safe=False,... | Remove tests from built package (#<I>) ...to prevent the tests to be included in production code. From "Using find_packages()": For simple projects, it’s usually easy enough to manually add packages to the packages argument of setup(). However, for very large projects (Twisted, PEAK, Zope, Chandler, ... | py |
diff --git a/pylint_django/compat.py b/pylint_django/compat.py
index <HASH>..<HASH> 100644
--- a/pylint_django/compat.py
+++ b/pylint_django/compat.py
@@ -22,10 +22,3 @@ except ImportError:
except ImportError:
from astroid.util import Uninferable
-try:
- django = __import__("django")
- django_vers... | Remove unnecessary django_version compat this is not really used and elsewhere we do: from django import VERSION as django_version | py |
diff --git a/tests/test_objects.py b/tests/test_objects.py
index <HASH>..<HASH> 100644
--- a/tests/test_objects.py
+++ b/tests/test_objects.py
@@ -178,7 +178,10 @@ class TestGridFsObjects(unittest.TestCase):
"""
Drop the default gridfs instance (i.e. ``fs``) associate to this database
"""
- ... | test_objects's drop_gridfs also drop indexes | py |
diff --git a/aiotg/bot.py b/aiotg/bot.py
index <HASH>..<HASH> 100644
--- a/aiotg/bot.py
+++ b/aiotg/bot.py
@@ -341,7 +341,7 @@ class Bot:
else:
err_msg = await response.read()
logger.error(err_msg)
- raise RuntimeError(err_msg)
+ raise BotApiError(err_msg... | RuntimeError is too broad kind of exception, replaced with BotApiError (#<I>) | py |
diff --git a/src/python/dxpy/utils/config.py b/src/python/dxpy/utils/config.py
index <HASH>..<HASH> 100644
--- a/src/python/dxpy/utils/config.py
+++ b/src/python/dxpy/utils/config.py
@@ -280,7 +280,11 @@ class DXConfig(MutableMapping):
try:
os.makedirs(conf_dir, 0o700)
except OSError:
- ... | Fail gracefully if unable to chmod conf dir | py |
diff --git a/drivers/python2/rethinkdb/ast.py b/drivers/python2/rethinkdb/ast.py
index <HASH>..<HASH> 100644
--- a/drivers/python2/rethinkdb/ast.py
+++ b/drivers/python2/rethinkdb/ast.py
@@ -180,7 +180,13 @@ class RDBValue(RDBOp):
def order_by(self, *obs):
return OrderBy(self, *obs)
- def between(sel... | changes the behavior of betweeen to be inconsistent | py |
diff --git a/salt/utils/http.py b/salt/utils/http.py
index <HASH>..<HASH> 100644
--- a/salt/utils/http.py
+++ b/salt/utils/http.py
@@ -126,7 +126,7 @@ def query(url,
os.path.join(syspaths.CONFIG_DIR, 'master')
)
elif node == 'minion':
- opts = salt.config.master_config(... | minion nodes should parse minion configs Small copy/paste typo there | py |
diff --git a/src/foremast/consts.py b/src/foremast/consts.py
index <HASH>..<HASH> 100644
--- a/src/foremast/consts.py
+++ b/src/foremast/consts.py
@@ -9,7 +9,8 @@ LOG = logging.getLogger(__name__)
def find_config():
"""Look for **foremast.cfg** in config_locations.
- If not found, give a fatal error.
+ Ra... | fix: Exit with error when no configuration found | py |
diff --git a/api/opentrons/util/calibration_functions.py b/api/opentrons/util/calibration_functions.py
index <HASH>..<HASH> 100644
--- a/api/opentrons/util/calibration_functions.py
+++ b/api/opentrons/util/calibration_functions.py
@@ -65,14 +65,14 @@ def probe_instrument(instrument, robot) -> Point:
'x': [], '... | move to safe probe height before looping through switches | py |
diff --git a/openhtf/conf.py b/openhtf/conf.py
index <HASH>..<HASH> 100644
--- a/openhtf/conf.py
+++ b/openhtf/conf.py
@@ -230,7 +230,9 @@ class ConfigModel(object):
@threads.Synchronized
def ContainsKey(self, name):
- return name in self._state
+ return name in self._state or (
+ name in self._dec... | Make 'in' checks on config True if the key isn't in the config but a default_value is declared | py |
diff --git a/django_zappa/handler.py b/django_zappa/handler.py
index <HASH>..<HASH> 100644
--- a/django_zappa/handler.py
+++ b/django_zappa/handler.py
@@ -107,7 +107,7 @@ def lambda_handler(event, context, settings_name="zappa_settings"):
exception = (b64_content)
# Internal are changed to become ... | Fixes #<I> -- Adds support for various 3** HTTP respones Adds support for <I> - <I> HTTP responses. <I> and <I> want you to use the same METHOD as the original request. This is something your javascript code doesn't do yet. | py |
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py
index <HASH>..<HASH> 100644
--- a/tests/test_cmd2.py
+++ b/tests/test_cmd2.py
@@ -352,5 +352,9 @@ def test_base_colorize(base_app):
# But if we create a fresh Cmd() instance, it will
fresh_app = cmd2.Cmd()
color_test = fresh_app.colorize('Test', 'red')... | Fix to colorize unit test for Windows | py |
diff --git a/test/conftest.py b/test/conftest.py
index <HASH>..<HASH> 100644
--- a/test/conftest.py
+++ b/test/conftest.py
@@ -11,7 +11,6 @@ from nameko import memory
memory.patch()
-
def get_connection():
#conn = Connection('amqp://guest:guest@10.11.105.128:5672//platform')
conn = Connection(transport=... | patch eventlet so that it behaves with pytest | py |
diff --git a/socketIO_client/logs.py b/socketIO_client/logs.py
index <HASH>..<HASH> 100644
--- a/socketIO_client/logs.py
+++ b/socketIO_client/logs.py
@@ -2,7 +2,16 @@ import logging
import time
logger = logging.getLogger("socketIO-client")
-logger.addHandler(logging.NullHandler())
+
+try:
+ logger.addHandler(lo... | Fixes NullHandler not present in Python <I> | py |
diff --git a/py/doc/conftest.py b/py/doc/conftest.py
index <HASH>..<HASH> 100644
--- a/py/doc/conftest.py
+++ b/py/doc/conftest.py
@@ -1,7 +1,6 @@
from __future__ import generators
import py
from py.__.misc import rest
-from py.__.rest import directive
Option = py.test.config.Option
option = py.test.config.add... | [svn r<I>] fix failures in case of docutils not being installed (related to importing 'py.__.rest.directive') --HG-- branch : trunk | py |
diff --git a/indra/sources/reach/reach_api.py b/indra/sources/reach/reach_api.py
index <HASH>..<HASH> 100644
--- a/indra/sources/reach/reach_api.py
+++ b/indra/sources/reach/reach_api.py
@@ -137,7 +137,11 @@ def process_text(text, citation=None, offline=False):
logger.error('Could not process text.')
... | Get result from new results_map format in REACH | py |
diff --git a/tests/test_plot.py b/tests/test_plot.py
index <HASH>..<HASH> 100644
--- a/tests/test_plot.py
+++ b/tests/test_plot.py
@@ -1,3 +1,5 @@
+from more_itertools.recipes import flatten
+
from svg.charts.plot import Plot
@@ -56,3 +58,27 @@ class TestPlot:
assert b'Sam' in svg
assert b'Dan' in svg
+ @s... | Add tests capturing failures with iterable data. Ref #<I>. | py |
diff --git a/tests/jenkins/pages/treeherder.py b/tests/jenkins/pages/treeherder.py
index <HASH>..<HASH> 100644
--- a/tests/jenkins/pages/treeherder.py
+++ b/tests/jenkins/pages/treeherder.py
@@ -269,9 +269,11 @@ class TreeherderPage(Base):
self.find_element(*self._filter_panel_exception_failures_locator).click... | Jenkins: Improve test_switch_repo by working around bug <I> (#<I>) | py |
diff --git a/spyder/utils/qthelpers.py b/spyder/utils/qthelpers.py
index <HASH>..<HASH> 100644
--- a/spyder/utils/qthelpers.py
+++ b/spyder/utils/qthelpers.py
@@ -86,8 +86,8 @@ def qapplication(translate=True, test_time=3):
if translate:
install_translator(app)
- test_travis = os.environ.get('TEST... | Testing: Change the name of a variable | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.