diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -129,6 +129,7 @@ setup(
install_requires = [
'marrow.templating',
+ 'marrow.package',
'WebOb',
'marrow.util<2.0',
], | Added missing marrow.package dep. | py |
diff --git a/mongoctl/objects/cluster.py b/mongoctl/objects/cluster.py
index <HASH>..<HASH> 100644
--- a/mongoctl/objects/cluster.py
+++ b/mongoctl/objects/cluster.py
@@ -87,7 +87,8 @@ class Cluster(DocumentWrapper):
server_uri_templates = []
for member in self.get_members():
server = mem... | Removing arbiters from print-uri | py |
diff --git a/pipenv/cli.py b/pipenv/cli.py
index <HASH>..<HASH> 100644
--- a/pipenv/cli.py
+++ b/pipenv/cli.py
@@ -1010,7 +1010,7 @@ def shell(three=None, python=False, compat=False, shell_args=None):
signal.signal(signal.SIGWINCH, sigwinch_passthrough)
# Interact with the new shell.
- c.interact()
+ ... | remove escape character from pexpect.spawn.interact The default escape character for pexpect.spaw is ctrl-] which conflicts with a vim binding. This isn't an escape sequence that is mirrored in virtualenv, so there doesn't seem to be a good reason to keep it. This will make `pipenv shell` more inline with the standard... | py |
diff --git a/pupa/cli/commands/update.py b/pupa/cli/commands/update.py
index <HASH>..<HASH> 100644
--- a/pupa/cli/commands/update.py
+++ b/pupa/cli/commands/update.py
@@ -40,7 +40,8 @@ def save_report(report, jurisdiction):
plan = RunPlan.objects.create(jurisdiction_id=jurisdiction, success=report['success'])
... | proper report formatting of scraper params | py |
diff --git a/openquake/baselib/general.py b/openquake/baselib/general.py
index <HASH>..<HASH> 100644
--- a/openquake/baselib/general.py
+++ b/openquake/baselib/general.py
@@ -1445,21 +1445,23 @@ class RecordBuilder(object):
>>> rb()
(0, 1., b'2')
"""
- def __init__(self, **defaults):
- self.nam... | Added RecordBuilder.dtlist | py |
diff --git a/luigi/hdfs.py b/luigi/hdfs.py
index <HASH>..<HASH> 100644
--- a/luigi/hdfs.py
+++ b/luigi/hdfs.py
@@ -332,7 +332,7 @@ class SnakebiteHdfsClient(HdfsClient):
:type dest: string
:return: list of renamed items
"""
- parts = dest.split('/')
+ parts = dest.rstrip('/').sp... | Remove trailing slash when using snakebite rename Old functionality caused odd behavior when doing: snakebite.rename('foo/', 'bar/') and the bar did not exist. As result it created the 'bar' first and then moved 'foo' in there, resulting in 'bar/foo'. By stripping the slashes on the right, the behavior works as... | py |
diff --git a/zipline/sources/test_source.py b/zipline/sources/test_source.py
index <HASH>..<HASH> 100644
--- a/zipline/sources/test_source.py
+++ b/zipline/sources/test_source.py
@@ -59,6 +59,11 @@ def date_gen(start=datetime(2006, 6, 6, 12, tzinfo=pytz.utc),
"""
one_day = timedelta(days=1)
cur = start
+... | TST: Ensure that test bars and events use midnight for daily data. Daily data should be using midnight as the timestamp, ensure that test data created by data_gen use midnight, so that upcoming implementations that rely on the timestamp will be compatible. | py |
diff --git a/openinghours/admin.py b/openinghours/admin.py
index <HASH>..<HASH> 100644
--- a/openinghours/admin.py
+++ b/openinghours/admin.py
@@ -1,7 +1,9 @@
from django.contrib import admin
-from openinghours.models import OpeningHours, ClosingRules, Company
+from openinghours.models import (OpeningHours, ClosingRul... | Upgraded admin to make our company model optional. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -28,6 +28,7 @@ setup(name="tweepy",
"PySocks>=1.5.7",
],
keywords="twitter library",
+ python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
classifiers=[
'Development Sta... | Add python_requires to help pip | py |
diff --git a/bcbio/upload/s3.py b/bcbio/upload/s3.py
index <HASH>..<HASH> 100644
--- a/bcbio/upload/s3.py
+++ b/bcbio/upload/s3.py
@@ -37,7 +37,7 @@ def update_file(finfo, sample_info, config):
conn = objectstore.connect(fname)
bucket = conn.lookup(config["bucket"])
if not bucket:
- bucket = conn.... | S3 upload: create buckets in non us-east-1 regions Passes location parameter to create bucket to avoid IllegalLocationConstraintException. We need to specify region both on connecting and when creating. Fixes #<I> | py |
diff --git a/eq3bt/connection.py b/eq3bt/connection.py
index <HASH>..<HASH> 100644
--- a/eq3bt/connection.py
+++ b/eq3bt/connection.py
@@ -35,7 +35,7 @@ class BTLEConnection(btle.DefaultDelegate):
try:
self._conn.connect(self._mac)
except btle.BTLEException as ex:
- _LOGGER.war... | Use debug logging for the first round of connection error | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -58,7 +58,7 @@ try:
}
except ImportError:
for arg in sys.argv:
- if arg.find('egg') != -1:
+ if 'egg' in arg:
if sys.version_info[0] > 2:
howto_install_distribute()
... | fix to build single-file .exe | py |
diff --git a/holoviews/core/data.py b/holoviews/core/data.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/data.py
+++ b/holoviews/core/data.py
@@ -41,6 +41,18 @@ class Columns(Element):
return self.interface.validate_data(data)
+ def __setstate__(self, state):
+ """
+ Restores Orde... | Added Columns.__setstate__ method for backwards compatibility | py |
diff --git a/isort/main.py b/isort/main.py
index <HASH>..<HASH> 100644
--- a/isort/main.py
+++ b/isort/main.py
@@ -261,6 +261,15 @@ def _build_arg_parser() -> argparse.ArgumentParser:
"based on file location.",
)
general_group.add_argument(
+ "--cr",
+ "--config-root",
+ dest="co... | Add config-root flag to let users explicitly set the path for resolving all config files | py |
diff --git a/django_su/backends.py b/django_su/backends.py
index <HASH>..<HASH> 100644
--- a/django_su/backends.py
+++ b/django_su/backends.py
@@ -6,7 +6,7 @@ from . import get_user_model
class SuBackend(object):
supports_inactive_user = False
- def authenticate(self, su=False, user_id=None, **kwargs):
+ ... | Update argument of django-su.backends.authenticate function Add a request parament to django-su.backends.authenticate in order to be compatible with the calling signature inside django.contrib.auth.authenticate, which is: inspect.getcallargs(backend.authenticate, request, **credentials) | py |
diff --git a/pysat/_instrument.py b/pysat/_instrument.py
index <HASH>..<HASH> 100644
--- a/pysat/_instrument.py
+++ b/pysat/_instrument.py
@@ -637,7 +637,7 @@ class Instrument(object):
# drop any possible duplicate index times
#self.data.drop_duplicates(inplace=True)
- ... | Removed keyword to DataFrame.index.duplicated that is failing on python <I> only. Value assigned to keyword is function default thus not required. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -89,6 +89,15 @@ setup_args = {
'cmdclass': {'install_data': install_data_twisted},
}
+try:
+ # If setuptools is installed, then we'll add setuptools-specific arguments
+ # to the setup args.
+ import setup... | setup: declare dependency on twisted >= <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -46,6 +46,6 @@ setup(
zip_safe=False,
install_requires=[
'distribute',
- 'pysaml2',
+ 'python-saml2',
],
) | pysaml2 is actually called python-saml2 | py |
diff --git a/confidence/utils.py b/confidence/utils.py
index <HASH>..<HASH> 100644
--- a/confidence/utils.py
+++ b/confidence/utils.py
@@ -68,8 +68,10 @@ def _split_keys(mapping, separator='.', colliding=None):
# recursively split key(s) in value
value = _split_keys(value, separator)
- ... | Explicitly reject non-str type keys during split+merge | py |
diff --git a/intranet/settings/local.py b/intranet/settings/local.py
index <HASH>..<HASH> 100644
--- a/intranet/settings/local.py
+++ b/intranet/settings/local.py
@@ -35,7 +35,7 @@ CACHES["default"]["OPTIONS"]["DB"] = 2
# Make the cache age last just long enough to reload the page to
# check if caching worked
for ke... | Extend cache lifetime to get more accurate load times | py |
diff --git a/htmlfn/htmlfn/__init__.py b/htmlfn/htmlfn/__init__.py
index <HASH>..<HASH> 100644
--- a/htmlfn/htmlfn/__init__.py
+++ b/htmlfn/htmlfn/__init__.py
@@ -1,7 +1,7 @@
""" Light weight functions for generating html
and working with the rest of the unholy trinity. """
-__version__ = '0.0.3'
+__version__ = '0.... | htmlfn version bump for more interactive details | py |
diff --git a/oandapyV20/endpoints/instruments.py b/oandapyV20/endpoints/instruments.py
index <HASH>..<HASH> 100644
--- a/oandapyV20/endpoints/instruments.py
+++ b/oandapyV20/endpoints/instruments.py
@@ -57,7 +57,7 @@ class InstrumentsCandles(Instruments):
>>> import oandapyV20.endpoints.instruments as instrume... | change revert for InstrumentCandles / applied for PositionBook [ci skip] | py |
diff --git a/examples/flask/werkzeug_adapter/config-template.py b/examples/flask/werkzeug_adapter/config-template.py
index <HASH>..<HASH> 100644
--- a/examples/flask/werkzeug_adapter/config-template.py
+++ b/examples/flask/werkzeug_adapter/config-template.py
@@ -1,6 +1,6 @@
# config.py
-from authomatic.providers imp... | Removed openid from imports. | py |
diff --git a/twarc/client.py b/twarc/client.py
index <HASH>..<HASH> 100644
--- a/twarc/client.py
+++ b/twarc/client.py
@@ -836,7 +836,9 @@ class Twarc(object):
else:
raise e
else:
- raise RuntimeError('Incomplete credentials provided.')
+ print('Incom... | Provide getting started message to client on first run. Provide message to client on getting started when credentials have not yet been supplied. Previously, a stack trace was shown attributing the exception/error that was invoked. This fix makes the output when getting started more user friendly and gives the user an... | py |
diff --git a/tests/main.py b/tests/main.py
index <HASH>..<HASH> 100644
--- a/tests/main.py
+++ b/tests/main.py
@@ -126,13 +126,13 @@ Available tasks:
def host_string_shorthand_is_passed_through(self, chan):
fab_program.run("fab -H someuser@host1:1234 -- whoami")
- class no_hosts_flag_at_a... | Feel like this bit should be higher level | py |
diff --git a/scripts/bert/compare_tf_gluon_model.py b/scripts/bert/compare_tf_gluon_model.py
index <HASH>..<HASH> 100644
--- a/scripts/bert/compare_tf_gluon_model.py
+++ b/scripts/bert/compare_tf_gluon_model.py
@@ -161,5 +161,4 @@ for i, seq in enumerate(bert_dataloader):
mx.test_utils.assert_almost_equal(a, b, at... | [FIX] Revert an unintended change (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ from codecs import open
import os
from setuptools import setup, find_packages
-version = '0.1.6'
+version = '0.2.0'
download_url = (
'https://github.com/steveYeah/PyBomb/archive/v{0}.tar.gz'.format(versi... | Version bump for new GameClient | py |
diff --git a/tests/loop.py b/tests/loop.py
index <HASH>..<HASH> 100644
--- a/tests/loop.py
+++ b/tests/loop.py
@@ -37,9 +37,11 @@ class LoopSocket (object):
self.__cv = threading.Condition(self.__lock)
self.__timeout = None
self.__mate = None
+ self._closed = False
def close(sel... | Update fake test socket objects to exhibit Python 3 socket-closed flag Re #<I> | py |
diff --git a/openquake/job/__init__.py b/openquake/job/__init__.py
index <HASH>..<HASH> 100644
--- a/openquake/job/__init__.py
+++ b/openquake/job/__init__.py
@@ -22,6 +22,7 @@ import hashlib
import os
import re
import subprocess
+import sqlalchemy
import urlparse
from ConfigParser import ConfigParser, RawConfig... | Handles SQLalchemy exception specially | py |
diff --git a/test/query/test_q.py b/test/query/test_q.py
index <HASH>..<HASH> 100644
--- a/test/query/test_q.py
+++ b/test/query/test_q.py
@@ -126,8 +126,8 @@ class TestQueryable(object): # TODO: Properly use pytest fixtures for this...
assert unicode(Sample.generic) == ~Sample.generic == 'generic'
def test_op... | Silly regexen are silly. | py |
diff --git a/km3pipe/core.py b/km3pipe/core.py
index <HASH>..<HASH> 100644
--- a/km3pipe/core.py
+++ b/km3pipe/core.py
@@ -142,6 +142,7 @@ class Pipeline(object):
self._cycle_count = 0
self._stop = False
self._finished = False
+ self.was_interrupted = False
def load_configuratio... | Add was_interrupted to check if pipeline was ctrl+c'd | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -37,7 +37,7 @@ setup(
packages=find_packages(exclude=['*tests*']),
install_requires=["requests"],
tests_require=["pytest",
- "httpretty"],
+ "HTTPretty"],
zip_safe=False,... | Fix setup.py pipit package | py |
diff --git a/applicationinsights/requests/WSGIApplication.py b/applicationinsights/requests/WSGIApplication.py
index <HASH>..<HASH> 100644
--- a/applicationinsights/requests/WSGIApplication.py
+++ b/applicationinsights/requests/WSGIApplication.py
@@ -25,7 +25,7 @@ class WSGIApplication(object):
app = c... | Add further documentation in WSGIApplication constructor | py |
diff --git a/aiorpcx/session.py b/aiorpcx/session.py
index <HASH>..<HASH> 100644
--- a/aiorpcx/session.py
+++ b/aiorpcx/session.py
@@ -254,8 +254,12 @@ class SessionBase(asyncio.Protocol):
return f'{ip_addr_str}:{port}'
async def spawn(self, coro, *args):
+ '''If the session is connected, spa... | Return the task, or None, from spawn() | py |
diff --git a/metaseq/minibrowser.py b/metaseq/minibrowser.py
index <HASH>..<HASH> 100644
--- a/metaseq/minibrowser.py
+++ b/metaseq/minibrowser.py
@@ -192,8 +192,8 @@ class GeneModelMiniBrowser(SignalMiniBrowser):
"""
from gffutils.contrib.plotting import Gene
extent = [feature.start, feature... | use gffutils <I> syntax (overlapping_features -> region) | py |
diff --git a/vcstool/clients/git.py b/vcstool/clients/git.py
index <HASH>..<HASH> 100644
--- a/vcstool/clients/git.py
+++ b/vcstool/clients/git.py
@@ -320,7 +320,7 @@ class GitClient(VcsClientBase):
if checkout_version:
cmd_checkout = [
- GitClient._executable, 'checkout', checkou... | add double dash to move to another branch, not reset file/directory (#<I>) | py |
diff --git a/smbclient/_pool.py b/smbclient/_pool.py
index <HASH>..<HASH> 100644
--- a/smbclient/_pool.py
+++ b/smbclient/_pool.py
@@ -148,10 +148,14 @@ class ClientConfig(object, metaclass=_ConfigSingleton):
if domain.domain_name.lower() == ("\\" + domain_name.lower()):
return domain
+ ... | fix: remove expired referrals from dfs cache (#<I>) Fix memory leak with DFS <URL> | py |
diff --git a/src/justbases/_display.py b/src/justbases/_display.py
index <HASH>..<HASH> 100644
--- a/src/justbases/_display.py
+++ b/src/justbases/_display.py
@@ -185,7 +185,7 @@ class Number(object):
'sign' : '-' if sign == -1 else '',
'base_prefix' : base_prefix,
'left' : left,
- ... | Fix a bug where radix was omitted if only repeating part. | py |
diff --git a/openquake/commonlib/source.py b/openquake/commonlib/source.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/source.py
+++ b/openquake/commonlib/source.py
@@ -314,7 +314,17 @@ class CompositionInfo(object):
self.num_samples = num_samples
self.source_models = source_models
... | Added a property [skip hazardlib] | py |
diff --git a/slacker/__init__.py b/slacker/__init__.py
index <HASH>..<HASH> 100644
--- a/slacker/__init__.py
+++ b/slacker/__init__.py
@@ -70,6 +70,9 @@ class BaseAPI(object):
def post(self, api, **kwargs):
return self._request(requests.post, api, **kwargs)
+ def setProxies(self, proxies):
+ s... | OAuth requests did not carry proxies OAuth requests were done without proxies | py |
diff --git a/sphinx_gallery/tests/test_gen_rst.py b/sphinx_gallery/tests/test_gen_rst.py
index <HASH>..<HASH> 100644
--- a/sphinx_gallery/tests/test_gen_rst.py
+++ b/sphinx_gallery/tests/test_gen_rst.py
@@ -123,6 +123,7 @@ def test_pattern_matching():
'filename_pattern': re.escape(os.sep) + 'plot_0',
... | Bug fix #<I>, test setup needs plot_gallery key | py |
diff --git a/django_mailbox/tests/test_process_email.py b/django_mailbox/tests/test_process_email.py
index <HASH>..<HASH> 100644
--- a/django_mailbox/tests/test_process_email.py
+++ b/django_mailbox/tests/test_process_email.py
@@ -191,7 +191,7 @@ class TestProcessEmail(EmailMessageTestCase):
actual_subject = m... | Updating yet another string for python3. | py |
diff --git a/test/cli/test_main.py b/test/cli/test_main.py
index <HASH>..<HASH> 100644
--- a/test/cli/test_main.py
+++ b/test/cli/test_main.py
@@ -168,7 +168,7 @@ class TestConfigEnvironmentVariables(object):
- 2
- 3
""",
- {"LIST": "[1,2,3]"},
+ {},
... | don't provide a value when testing defaults | py |
diff --git a/test/test.py b/test/test.py
index <HASH>..<HASH> 100755
--- a/test/test.py
+++ b/test/test.py
@@ -10,7 +10,7 @@ sys.path.insert(0, pkg_root)
import aegea
from aegea.util import Timestamp
from aegea.util.aws import (resolve_ami, SpotFleetBuilder, IAMPolicyBuilder, locate_ami, get_ondemand_price_usd, ARN,... | Add test for ip ranges | py |
diff --git a/admin_interface/version.py b/admin_interface/version.py
index <HASH>..<HASH> 100644
--- a/admin_interface/version.py
+++ b/admin_interface/version.py
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
-__version__ = '0.9.2'
+__version__ = '0.9.3' | Updated version. [ci skip] | py |
diff --git a/subconvert/gui/SubtitleWindow.py b/subconvert/gui/SubtitleWindow.py
index <HASH>..<HASH> 100644
--- a/subconvert/gui/SubtitleWindow.py
+++ b/subconvert/gui/SubtitleWindow.py
@@ -299,7 +299,7 @@ class SubtitleEditor(SubTab):
# Some signals
self._subtitleData.fileChanged.connect(self.file... | Added changeEncodingFromIndex. changeEncoding now accepts only a string. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,7 @@ setup(
dependency_links = [
],
install_requires=[
- 'django-likes',
+ 'django-likes>=0.0.6',
'redis',
'spambayes',
], | use likes <I> or above allowing for downvotes | py |
diff --git a/wal_e/__init__.py b/wal_e/__init__.py
index <HASH>..<HASH> 100644
--- a/wal_e/__init__.py
+++ b/wal_e/__init__.py
@@ -1 +0,0 @@
-import wal_e.worker | Remove stray line that snuck in | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -18,6 +18,7 @@ setup(
url = 'https://github.com/jochym/Elastic',
keywords = ['science', 'physics', 'ase', 'elastic constants', 'crystals'],
requires = ['spglib','numpy','scipy','ase','docutils','sphinx'],
+ s... | Add sphinx to setup req | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -121,7 +121,7 @@ setup(
packages=packages,
install_requires=[
'ana',
- 'sortedcontainers',
+ 'sortedcontainers>2.0',
'cachetools',
'capstone>=3.0.5rc2',
'cooldict', | setup.py: angr needs at least sortedcontainers > <I> It makes use of `SortedKeyList` which was introduced in that version: <URL> | py |
diff --git a/django_ajax/shortcuts.py b/django_ajax/shortcuts.py
index <HASH>..<HASH> 100644
--- a/django_ajax/shortcuts.py
+++ b/django_ajax/shortcuts.py
@@ -88,7 +88,7 @@ def render_to_json(response, *args, **kwargs):
elif issubclass(type(response), Exception):
status_code = 500
error_message =... | Logger no longer overrides exception level logger.exception passes on the error level and stacktrace | py |
diff --git a/highton/highton.py b/highton/highton.py
index <HASH>..<HASH> 100644
--- a/highton/highton.py
+++ b/highton/highton.py
@@ -205,8 +205,6 @@ class Highton(object):
try:
url = 'https://{}.highrisehq.com/{}.xml'.format(
self.user, endpoint, params)
- print url
-... | Removed debug code from _put_request | py |
diff --git a/galpy/orbit_src/integratePlanarOrbit.py b/galpy/orbit_src/integratePlanarOrbit.py
index <HASH>..<HASH> 100644
--- a/galpy/orbit_src/integratePlanarOrbit.py
+++ b/galpy/orbit_src/integratePlanarOrbit.py
@@ -18,7 +18,7 @@ if _lib is None:
_lib = None
else:
break
-if _lib is... | don't cover not being able to load the integration library | py |
diff --git a/dedupe/clustering.py b/dedupe/clustering.py
index <HASH>..<HASH> 100644
--- a/dedupe/clustering.py
+++ b/dedupe/clustering.py
@@ -286,10 +286,11 @@ def gazetteMatching(scored_blocks: Iterable[numpy.ndarray],
block.sort(order='score')
block = block[::-1]
- if n_matches:
- ... | ensure that gazetteMatching does not return empty blocks downstream code assumed that gazetteMatching returned non empty blocks, this assumption did not hold. closes #<I>. closes #<I> | py |
diff --git a/werkzeug/testsuite/__init__.py b/werkzeug/testsuite/__init__.py
index <HASH>..<HASH> 100644
--- a/werkzeug/testsuite/__init__.py
+++ b/werkzeug/testsuite/__init__.py
@@ -140,11 +140,8 @@ class WerkzeugTestCase(unittest.TestCase):
if isinstance(x, (six.binary_type, six.text_type, six.integer_types)... | Fixed bug in assert_strict_equal | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -49,7 +49,7 @@ Sign up for a FRED API key:
setup(
name="fred",
- version="2.3",
+ version="2.4",
description="St. Louis Federal Reserve FRED API",
long_description=long_description,
keywords="fred,... | Update version thanks to Python 3 bug fix | py |
diff --git a/lib/fitsdiff.py b/lib/fitsdiff.py
index <HASH>..<HASH> 100755
--- a/lib/fitsdiff.py
+++ b/lib/fitsdiff.py
@@ -88,12 +88,8 @@
easier to change the behavior of fitsdiff on a global level,
such as in a set of regression tests.
"""
-import numerixenv
-numerixenv.check()
-
-# This version nee... | Addresses #<I>. In addition removed references to numerixenv and bumped up the version string by 5 years git-svn-id: <URL> | py |
diff --git a/openquake/commands/engine.py b/openquake/commands/engine.py
index <HASH>..<HASH> 100644
--- a/openquake/commands/engine.py
+++ b/openquake/commands/engine.py
@@ -35,8 +35,8 @@ HAZARD_CALCULATION_ARG = "--hazard-calculation-id"
MISSING_HAZARD_MSG = "Please specify '%s=<id>'" % HAZARD_CALCULATION_ARG
-d... | --hc=-1 refer to the last calculation of the current user again [skip hazardlib][demos] Former-commit-id: e<I>adcc<I>bffef<I>ad6d<I>cfaf3a<I>f7c | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -50,21 +50,6 @@ if sys.argv[-1] == 'readme':
sys.exit()
-class PyTest(Command):
- user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]
-
- def initialize_options(self):
- self.pytest_arg... | Remove Pytest command from setup.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -83,7 +83,8 @@ setup(
"License :: OSI Approved :: Apache Software License",
"Topic :: Software Development :: Libraries :: Python Modules"],
- scripts=["tools/parse_xsd2.py", "tools/make_metadata.py"],
+... | Tool that imports metadata in XML format and outputs the same after some filtering into a pysaml2 specific metadata format. | py |
diff --git a/xarray/core/indexing.py b/xarray/core/indexing.py
index <HASH>..<HASH> 100644
--- a/xarray/core/indexing.py
+++ b/xarray/core/indexing.py
@@ -589,6 +589,10 @@ class LazilyIndexedArray(ExplicitlyIndexedNDArrayMixin):
return f"{type(self).__name__}(array={self.array!r}, key={self.key!r})"
+# kee... | Closes #<I> (#<I>) | py |
diff --git a/tests/test_server.py b/tests/test_server.py
index <HASH>..<HASH> 100644
--- a/tests/test_server.py
+++ b/tests/test_server.py
@@ -322,6 +322,24 @@ def test_device_property_with_default_value(typed_values, server_green_mode):
assert_close(proxy.get_prop(), expected(value))
+def test_device_get_... | Add test to verify get_device_properties called on init This is to test that `get_device_properties` is called automatically when a device starts up under all versions of Python. There was a report that it doesn't work under <I>. | py |
diff --git a/src/canmatrix/compare.py b/src/canmatrix/compare.py
index <HASH>..<HASH> 100644
--- a/src/canmatrix/compare.py
+++ b/src/canmatrix/compare.py
@@ -71,14 +71,16 @@ def compare_db(db1, db2, ignore=None):
if ignore is None:
ignore = dict()
for f1 in db1.frames:
- f2 = db2.frame_by_id(... | Correctly the result if compare two frame with different ID (#<I>) When comparing two dbc, the the frame has different ID it should be marked as "changed" frame. | py |
diff --git a/cockroachdb/sqlalchemy/dialect.py b/cockroachdb/sqlalchemy/dialect.py
index <HASH>..<HASH> 100644
--- a/cockroachdb/sqlalchemy/dialect.py
+++ b/cockroachdb/sqlalchemy/dialect.py
@@ -172,6 +172,12 @@ class CockroachDBDialect(PGDialect_psycopg2):
# For now, just return nothing.
return []
... | Stub out get_check_constraints The default implementation works on master/<I>, but not on <I>. | py |
diff --git a/art/test2.py b/art/test2.py
index <HASH>..<HASH> 100644
--- a/art/test2.py
+++ b/art/test2.py
@@ -241,7 +241,7 @@ Saved!
Filename: antrophobia.txt
>>> Data = tsave("test@34",font="fancy37",filename="fancy37.txt")
Saved!
-Filename: magical.txt
+Filename: fancy37.txt
>>> file = codecs.open("antrophobia.t... | fix : minor but in test2 fixed #<I> | py |
diff --git a/pyani/pyani_files.py b/pyani/pyani_files.py
index <HASH>..<HASH> 100644
--- a/pyani/pyani_files.py
+++ b/pyani/pyani_files.py
@@ -95,7 +95,10 @@ def get_fasta_and_hash_paths(dirname: Path = Path(".")) -> List[Tuple[Path, Path
infiles = get_fasta_paths(dirname)
outfiles = []
for infile in inf... | Added comments explaining which hashfiles will be sought | py |
diff --git a/python/weka/core/__init__.py b/python/weka/core/__init__.py
index <HASH>..<HASH> 100644
--- a/python/weka/core/__init__.py
+++ b/python/weka/core/__init__.py
@@ -0,0 +1,23 @@
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as p... | added check whether scipy is available; variable "scipy_available" can be used to query state | py |
diff --git a/bika/lims/subscribers/objectmodified.py b/bika/lims/subscribers/objectmodified.py
index <HASH>..<HASH> 100644
--- a/bika/lims/subscribers/objectmodified.py
+++ b/bika/lims/subscribers/objectmodified.py
@@ -17,7 +17,10 @@ def ObjectModifiedEventHandler(obj, event):
service = uc(UID=service.UID(... | LIMS-<I>: Prevent sudden death if no version information is available | py |
diff --git a/malaffinity/malaffinity.py b/malaffinity/malaffinity.py
index <HASH>..<HASH> 100644
--- a/malaffinity/malaffinity.py
+++ b/malaffinity/malaffinity.py
@@ -132,9 +132,9 @@ class MALAffinity:
# Create a local, deep-copy of the scores for modification
scores = copy.deepcopy(self._base_scores)... | Rename the "their_list" var to "user_list" | py |
diff --git a/tests_python/test_pydevcoverage.py b/tests_python/test_pydevcoverage.py
index <HASH>..<HASH> 100644
--- a/tests_python/test_pydevcoverage.py
+++ b/tests_python/test_pydevcoverage.py
@@ -2,6 +2,7 @@ import os
import re
import sys
import subprocess
+import tempfile
import unittest
@@ -56,9 +57,12 @@ ... | More robust creation of the coverage.xml Added a check of non-python files (.pyx) to the unit test. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,6 +13,7 @@
# the License.
import os
+import sys
from setuptools import setup
@@ -41,9 +42,15 @@ install_requires = [
# https://pagure.io/python-daemon/issue/18
'python-daemon<2.2.0',
'python-dateuti... | setup.py: Support older setuptools (<=<I>) (#<I>) The `python_version` conditional was added fairly recently (<2 years). We've run into a few cases where it would be very convenient for luigi to support older setuptools (e.g. managed environments where it may be difficult or not possible to upgrade). | py |
diff --git a/tests/mio.py b/tests/mio.py
index <HASH>..<HASH> 100755
--- a/tests/mio.py
+++ b/tests/mio.py
@@ -136,6 +136,7 @@ def check_db(c, db, test=None):
a = molecule(mol)
a.center(vacuum=10.0)
a.set_pbc(False)
+ a.set_array('charges', np.zeros(len(a)))
... | Bug fix: SCC NOTB needs charges assigned. Skip mio test if MIO environment variable is not set. | py |
diff --git a/rosetta/__init__.py b/rosetta/__init__.py
index <HASH>..<HASH> 100644
--- a/rosetta/__init__.py
+++ b/rosetta/__init__.py
@@ -1,9 +1,12 @@
-import django
+try:
+ import django
-VERSION = (0, 9, 8)
+ if django.VERSION[:3] <= (3, 2, 0):
+ default_app_config = "rosetta.apps.RosettaAppConfig"
+e... | Conditional importing of django in main __init__ | py |
diff --git a/spyderlib/otherplugins.py b/spyderlib/otherplugins.py
index <HASH>..<HASH> 100644
--- a/spyderlib/otherplugins.py
+++ b/spyderlib/otherplugins.py
@@ -8,13 +8,21 @@
Spyder third-party plugins configuration management
"""
-import os.path as osp, os
+import os
+import os.path as osp
-PLUGIN_PATH ... | py2exe deployment/bugfix: spyderplugins detection / fixed environment error when trying to browse a directory inside library.zip | py |
diff --git a/ella/photos/models.py b/ella/photos/models.py
index <HASH>..<HASH> 100644
--- a/ella/photos/models.py
+++ b/ella/photos/models.py
@@ -91,10 +91,6 @@ class Photo(models.Model):
"""
Generates thumbnail for admin site and returns its url
"""
- type = detect_img_type(self.imag... | Enable PHOTOS_IMAGE_URL_PREFIX setting. Refs #<I> | py |
diff --git a/hearthstone/hslog/entities.py b/hearthstone/hslog/entities.py
index <HASH>..<HASH> 100644
--- a/hearthstone/hslog/entities.py
+++ b/hearthstone/hslog/entities.py
@@ -17,7 +17,7 @@ class Entity:
@property
def controller(self):
- return self.game.entities.get(self.tags.get(GameTag.CONTROLLER, 0))
+ r... | hslog: Implement Game.get_player() to use when getting the controller | py |
diff --git a/manager/tests/tests.py b/manager/tests/tests.py
index <HASH>..<HASH> 100644
--- a/manager/tests/tests.py
+++ b/manager/tests/tests.py
@@ -39,18 +39,18 @@ __all__ = ["testsSuite"]
#**********************************************************************************************************************
#*** M... | Ensure "sys.path" is properly set. | py |
diff --git a/doctr/travis.py b/doctr/travis.py
index <HASH>..<HASH> 100644
--- a/doctr/travis.py
+++ b/doctr/travis.py
@@ -533,7 +533,7 @@ The doctr command that was run is
return False
-def push_docs(deploy_branch='gh-pages', retries=3):
+def push_docs(deploy_branch='gh-pages', retries=5):
"""
Push ... | Increase the number of retries The doctr Travis builds are failing because of retry issues. | py |
diff --git a/salt/client.py b/salt/client.py
index <HASH>..<HASH> 100644
--- a/salt/client.py
+++ b/salt/client.py
@@ -79,6 +79,9 @@ class LocalClient(object):
Read in the rotating master authentication key
'''
key_user = self.salt_user
+ if key_user == 'root':
+ if self.opt... | Make the root user track the master's user key | py |
diff --git a/satpy/resample.py b/satpy/resample.py
index <HASH>..<HASH> 100644
--- a/satpy/resample.py
+++ b/satpy/resample.py
@@ -399,7 +399,7 @@ class BaseResampler(object):
cache_dir = cache_dir or '.'
hash_str = self.get_hash(**kwargs)
- return os.path.join(cache_dir, 'resample_lut-' + ha... | Create filenames ending in .zarr | py |
diff --git a/insultgenerator/words.py b/insultgenerator/words.py
index <HASH>..<HASH> 100644
--- a/insultgenerator/words.py
+++ b/insultgenerator/words.py
@@ -6,7 +6,7 @@ _wordlists = {}
def _load_wordlist(list_reference, filename):
global _wordlists
unparsed_list = pkg_resources.resource_string(__name__, filename... | Fixing windows-related bug with line endings | py |
diff --git a/newsplease/pipeline/pipelines.py b/newsplease/pipeline/pipelines.py
index <HASH>..<HASH> 100644
--- a/newsplease/pipeline/pipelines.py
+++ b/newsplease/pipeline/pipelines.py
@@ -2,16 +2,18 @@
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topic... | fix py<I> issue where a staticmethod annotation was missing | py |
diff --git a/runtests.py b/runtests.py
index <HASH>..<HASH> 100755
--- a/runtests.py
+++ b/runtests.py
@@ -49,11 +49,11 @@ if not settings.configured:
TEMPLATE_CONTEXT_PROCESSORS = list(default_settings.TEMPLATE_CONTEXT_PROCESSORS) + [
'django.core.context_processors.request',
... | runtests: fix TEMPLATES warning | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -53,7 +53,7 @@ setup(
"tldextract>=2.2,<2.3",
"hfilesize>=0.1",
"dotty_dict>=1.3.0<1.40",
- "pyjwt>=2.3,<2.4",
+ "pyjwt>=2.3,<2.5",
"pytest>=7<8",
"werkzeug>=2<3",
... | bumped pyjwt | py |
diff --git a/spherecluster/von_mises_fisher_mixture.py b/spherecluster/von_mises_fisher_mixture.py
index <HASH>..<HASH> 100644
--- a/spherecluster/von_mises_fisher_mixture.py
+++ b/spherecluster/von_mises_fisher_mixture.py
@@ -23,7 +23,7 @@ from sklearn.utils.extmath import squared_norm
from sklearn.metrics.pairwise i... | Tell package to import spherical_kmeans from current package path | py |
diff --git a/tests/test_algorithms.py b/tests/test_algorithms.py
index <HASH>..<HASH> 100644
--- a/tests/test_algorithms.py
+++ b/tests/test_algorithms.py
@@ -15,7 +15,7 @@ except ImportError:
has_crypto = False
-class TestJWT(unittest.TestCase):
+class TestAlgorithms(unittest.TestCase):
def setUp(self): ... | Fixed a typo in the class name for TestAlgorithms | py |
diff --git a/test/test_constbitstream.py b/test/test_constbitstream.py
index <HASH>..<HASH> 100644
--- a/test/test_constbitstream.py
+++ b/test/test_constbitstream.py
@@ -16,3 +16,18 @@ class All(unittest.TestCase):
height = s.read(12).uint
self.assertEqual((width, height), (352, 288))
+
+class Inte... | A couple more interleaved exp-Golomb tests. | py |
diff --git a/tensorbase/stoch.py b/tensorbase/stoch.py
index <HASH>..<HASH> 100644
--- a/tensorbase/stoch.py
+++ b/tensorbase/stoch.py
@@ -94,7 +94,7 @@ class GaussianLayerConv(StochLayer):
def compute_samples(self):
""" Sample from a Normal distribution with inferred mu and std """
- h, w = self... | convnet and deconvnet | py |
diff --git a/wandb/file_pusher.py b/wandb/file_pusher.py
index <HASH>..<HASH> 100644
--- a/wandb/file_pusher.py
+++ b/wandb/file_pusher.py
@@ -72,7 +72,7 @@ class UploadJob(threading.Thread):
shutil.copy2(self.path, self.save_path)
def cleanup_file(self):
- if self.copy:
+ if self.copy... | fix FileNotFoundError (#<I>) | py |
diff --git a/broadlink/__init__.py b/broadlink/__init__.py
index <HASH>..<HASH> 100644
--- a/broadlink/__init__.py
+++ b/broadlink/__init__.py
@@ -43,7 +43,8 @@ def gendevice(devtype, host, mac):
0x27a1, # RM2 Pro Plus R1
0x27a6, # RM2 Pro PP
0x278f, # RM Mini Shate
- ... | Add <I>de RM Mini 3 (C) (#<I>) I have a 0x<I>de RM Mini 3, as inspired by <URL> | py |
diff --git a/ratcave/utils/coordinates.py b/ratcave/utils/coordinates.py
index <HASH>..<HASH> 100644
--- a/ratcave/utils/coordinates.py
+++ b/ratcave/utils/coordinates.py
@@ -209,6 +209,18 @@ class Translation(Coordinates):
assert len(args) == 3, "Must be xyz coordinates"
super(Translation, self).__in... | Enabled textures when doing flat shading. | py |
diff --git a/buku.py b/buku.py
index <HASH>..<HASH> 100755
--- a/buku.py
+++ b/buku.py
@@ -2347,9 +2347,8 @@ def prep_tag_search(tags):
:return: tuple (
list of formatted tags to search,
a string indicating query search operator (either OR or AND),
- a r... | Fix incorrect docsting in prep_tag_search (#<I>) | py |
diff --git a/synapse/lib/storm.py b/synapse/lib/storm.py
index <HASH>..<HASH> 100644
--- a/synapse/lib/storm.py
+++ b/synapse/lib/storm.py
@@ -1435,10 +1435,9 @@ class Runtime(Configable):
nodes = core.getTufosByTag(tag, limit=limt.get())
- limt.dec(len(nodes))
[quer... | Use limithelper consistently in jointags() | py |
diff --git a/salt/roster/flat.py b/salt/roster/flat.py
index <HASH>..<HASH> 100644
--- a/salt/roster/flat.py
+++ b/salt/roster/flat.py
@@ -89,6 +89,22 @@ class RosterMatcher(object):
minions[minion] = data
return minions
+ def ret_nodegroup_minions(self):
+ '''
+ Return ... | Add "nodegroup" matching to salt-ssh Uses the special ssh_nodegroups config value, which only takes lists, not normal compound matching. | py |
diff --git a/master/buildbot/test/unit/test_process_buildrequestdistributor.py b/master/buildbot/test/unit/test_process_buildrequestdistributor.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/test/unit/test_process_buildrequestdistributor.py
+++ b/master/buildbot/test/unit/test_process_buildrequestdistributor.py
@... | fix test_bldr_maybeStartBuild_fails_once to not rely on modifying mutable function argument having mutable argument is a bad practice and is detected by linter like quantifiable code. but this unit test was actually relying on this bad practice | py |
diff --git a/indra/sources/omnipath/omnipath_client.py b/indra/sources/omnipath/omnipath_client.py
index <HASH>..<HASH> 100644
--- a/indra/sources/omnipath/omnipath_client.py
+++ b/indra/sources/omnipath/omnipath_client.py
@@ -13,6 +13,18 @@ urls = {'interactions': op_url + '/interactions',
'ptms': op_url + '/... | Add helper for making text refs | py |
diff --git a/web3/web3/contract.py b/web3/web3/contract.py
index <HASH>..<HASH> 100644
--- a/web3/web3/contract.py
+++ b/web3/web3/contract.py
@@ -73,9 +73,10 @@ class ContractFactory(object):
txhash = self.eth.sendTransaction(options)
contract.transactionHash = txhash
- checkForContractAddre... | Update eth.contract.new() to temporarily return tx_hash rather than contract address. | py |
diff --git a/tests/integration/conftest.py b/tests/integration/conftest.py
index <HASH>..<HASH> 100644
--- a/tests/integration/conftest.py
+++ b/tests/integration/conftest.py
@@ -24,8 +24,6 @@ import os
import logging
import subprocess
-from conu.apidefs.backend import set_logging
-
# fails when doing absolute imp... | tests: dont configure logging, it's not needed | py |
diff --git a/allauth/socialaccount/providers/instagram/views.py b/allauth/socialaccount/providers/instagram/views.py
index <HASH>..<HASH> 100644
--- a/allauth/socialaccount/providers/instagram/views.py
+++ b/allauth/socialaccount/providers/instagram/views.py
@@ -18,6 +18,7 @@ class InstagramOAuth2Adapter(OAuth2Adapter)... | fix(instagram): Check API response code | py |
diff --git a/test/spider_task.py b/test/spider_task.py
index <HASH>..<HASH> 100644
--- a/test/spider_task.py
+++ b/test/spider_task.py
@@ -218,3 +218,31 @@ class TestSpider(TestCase):
bot.add_task(Task('page', url=SERVER.BASE_URL))
bot.run()
self.assertEqual(bot.tokens, ['fallback'])
+
+ d... | Add more tests to check processing of fallback handlers | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.