diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/tests/test_transform.py b/tests/test_transform.py
index <HASH>..<HASH> 100644
--- a/tests/test_transform.py
+++ b/tests/test_transform.py
@@ -40,5 +40,5 @@ def test_scale_xy():
svg_fig = transform.fromstring(circle)
group = svg_fig.getroot()
- group.scale_xy(0, 30)
+ group.scale(0, 30)
... | changed scale_xy to scale in nose tests to comply with changes. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -71,6 +71,6 @@ setup(
install_requires=readlines('requirements.txt'),
extras_require={
'ssl': ['pyopenssl', ],
- 'dev': ['django', 'flask', 'mock', 'pyopenssl', 'ipdb']
+ 'dev': ['django', 'fla... | apparently mock>1 requires funcsigs and doesn't put it in it's requirements | py |
diff --git a/blockstack/lib/nameset/db.py b/blockstack/lib/nameset/db.py
index <HASH>..<HASH> 100644
--- a/blockstack/lib/nameset/db.py
+++ b/blockstack/lib/nameset/db.py
@@ -191,7 +191,7 @@ def namedb_create( path ):
con = sqlite3.connect( path, isolation_level=None, timeout=2**30 )
for line in lines:
- ... | handle timeouts in db queries | py |
diff --git a/devassistant/package_managers.py b/devassistant/package_managers.py
index <HASH>..<HASH> 100644
--- a/devassistant/package_managers.py
+++ b/devassistant/package_managers.py
@@ -339,6 +339,8 @@ class DependencyInstaller(object):
def _install_dependencies(self):
"""Install missing dependencies... | Don't run the installation machinery if we have empty dependency list | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -40,7 +40,8 @@ setup(name = 'trimesh',
'trimesh.ray',
'trimesh.path',
'trimesh.path.io',
- 'trimesh.scene'],
+ 'trimesh.scene',
+ 'trimesh.interfaces'],
packag... | Add interfaces folder to setup.py. | py |
diff --git a/holoviews/operation/normalization.py b/holoviews/operation/normalization.py
index <HASH>..<HASH> 100644
--- a/holoviews/operation/normalization.py
+++ b/holoviews/operation/normalization.py
@@ -103,15 +103,17 @@ class Normalization(ElementOperation):
Method to get the appropriate normalization ran... | Fixed bug and improved Normalization.get_ranges method | py |
diff --git a/bang/util.py b/bang/util.py
index <HASH>..<HASH> 100644
--- a/bang/util.py
+++ b/bang/util.py
@@ -217,7 +217,7 @@ class S3Handler(BufferingHandler):
def initialize_logging(config):
multiprocessing.current_process().name = 'Stack'
- cfg = config.get('logging', {})
+ cfg = config.get(A.LOGGING,... | Replace magic string with attribute constant in initialize_logging | py |
diff --git a/dingo/core/network/__init__.py b/dingo/core/network/__init__.py
index <HASH>..<HASH> 100644
--- a/dingo/core/network/__init__.py
+++ b/dingo/core/network/__init__.py
@@ -95,7 +95,7 @@ class GridDingo:
nodes_color.append((0.5, 0.5, 1))
edges_color = []
- for edge in g.edge... | add drawing of crit edges II. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -30,7 +30,7 @@ else:
setup(
name = 'ifaddr',
- version = '0.1.5',
+ version = '0.1.6',
description='Enumerates all IP addresses on all network adapters of the system.',
long_description=long_description... | Preparing release <I> | py |
diff --git a/tests/test_ftpfs.py b/tests/test_ftpfs.py
index <HASH>..<HASH> 100644
--- a/tests/test_ftpfs.py
+++ b/tests/test_ftpfs.py
@@ -12,7 +12,12 @@ import time
import unittest
import uuid
-from six import text_type
+try:
+ from unittest import mock
+except ImportError:
+ import mock
+
+from six import t... | Test that no new connection is opened with `_manage_ftp` in `FTPFS.upload` | py |
diff --git a/pymc3/tests/test_variational_inference.py b/pymc3/tests/test_variational_inference.py
index <HASH>..<HASH> 100644
--- a/pymc3/tests/test_variational_inference.py
+++ b/pymc3/tests/test_variational_inference.py
@@ -153,12 +153,16 @@ def three_var_approx_single_group_mf(three_var_model):
def test_sample... | Added test for VI sampling backends | py |
diff --git a/pyemu/sc.py b/pyemu/sc.py
index <HASH>..<HASH> 100644
--- a/pyemu/sc.py
+++ b/pyemu/sc.py
@@ -521,8 +521,22 @@ class Schur(LinearAnalysis):
if forecast is None:
assert len(self.forecasts) == 1,"forecast arg list one and only one" +\
" forec... | bug fix in Schur.next_most...assumed prediction_arg was a good choice to check for forecast names. now checking the column names in each of the forecast vectors | py |
diff --git a/bakery/tasks.py b/bakery/tasks.py
index <HASH>..<HASH> 100644
--- a/bakery/tasks.py
+++ b/bakery/tasks.py
@@ -40,7 +40,7 @@ def run(command, cwd, log):
# log the command
log.write('\nCommand: %s\n' % command)
# Start the command
- p = subprocess.Popen(command, shell = True, cwd = cwd, std... | Fix: Add close_fds=True to Popen() calls, to prevent 'IOError: [Errno <I>] Too many open files' | py |
diff --git a/examples/web_ws.py b/examples/web_ws.py
index <HASH>..<HASH> 100755
--- a/examples/web_ws.py
+++ b/examples/web_ws.py
@@ -13,7 +13,7 @@ WS_FILE = os.path.join(os.path.dirname(__file__), 'websocket.html')
async def wshandler(request):
resp = WebSocketResponse()
- ok, protocol = resp.can_start(req... | Change can_start to can_prepare in ws example (#<I>) WebSocketResponse.can_start is deprecated and should be replaced by can_prepare. Lets make our example reflect this. | py |
diff --git a/airflow/providers/ssh/hooks/ssh.py b/airflow/providers/ssh/hooks/ssh.py
index <HASH>..<HASH> 100644
--- a/airflow/providers/ssh/hooks/ssh.py
+++ b/airflow/providers/ssh/hooks/ssh.py
@@ -140,7 +140,8 @@ class SSHHook(BaseHook):
user_ssh_config_filename = os.path.expanduser('~/.ssh/config')
... | [AIRFLOW-<I>] Close file object after parsing ssh config (#<I>) | py |
diff --git a/openfisca_core/legislations.py b/openfisca_core/legislations.py
index <HASH>..<HASH> 100644
--- a/openfisca_core/legislations.py
+++ b/openfisca_core/legislations.py
@@ -49,7 +49,7 @@ class CompactNode(object):
combined_tax_scales = None
for name, child in self.iteritems():
i... | logs should be unicode strings | py |
diff --git a/pyipmi/msgs/picmg.py b/pyipmi/msgs/picmg.py
index <HASH>..<HASH> 100644
--- a/pyipmi/msgs/picmg.py
+++ b/pyipmi/msgs/picmg.py
@@ -200,6 +200,7 @@ class FruControlRsp(Message):
__fields__ = (
CompletionCode(),
PicmgIdentifier(),
+ RemainingBytes('rsp_data'),
) | msgs.picmg: Allow additional response data in FruControlRsp FRU Control messages such as FRU Control Diagnostic Interrupt may have a response with additional data. | py |
diff --git a/tweepy/auth.py b/tweepy/auth.py
index <HASH>..<HASH> 100644
--- a/tweepy/auth.py
+++ b/tweepy/auth.py
@@ -36,10 +36,10 @@ class OAuthHandler(AuthHandler):
OAUTH_ROOT = '/oauth/'
def __init__(self, consumer_key, consumer_secret, callback=None):
- if type(consumer_key) == str:
+ if ... | Replace type equality check in OAuthHandler initialization With isinstance usage | py |
diff --git a/python_modules/dagster-graphql/dagster_graphql/schema/runs.py b/python_modules/dagster-graphql/dagster_graphql/schema/runs.py
index <HASH>..<HASH> 100644
--- a/python_modules/dagster-graphql/dagster_graphql/schema/runs.py
+++ b/python_modules/dagster-graphql/dagster_graphql/schema/runs.py
@@ -813,8 +813,9 ... | fix graphql log message Summary: The GraphQL interface says this should not be null - so don't set it to None Test Plan: existing snapshot tests Reviewers: prha, max, schrockn Reviewed By: schrockn Differential Revision: <URL> | py |
diff --git a/pytablewriter/style/_styler.py b/pytablewriter/style/_styler.py
index <HASH>..<HASH> 100644
--- a/pytablewriter/style/_styler.py
+++ b/pytablewriter/style/_styler.py
@@ -97,6 +97,9 @@ class LatexStyler(TextStyler):
def apply(self, value):
value = super(LatexStyler, self).apply(value)
+ ... | Suppress applying styles when the value is null | py |
diff --git a/tests/basic_store.py b/tests/basic_store.py
index <HASH>..<HASH> 100644
--- a/tests/basic_store.py
+++ b/tests/basic_store.py
@@ -225,11 +225,12 @@ class BasicStore(object):
store.put(key, value)
store.put(key2, value2)
- l = sorted(store.keys())
+ l = store.keys()
+ ... | Add test for return type of .keys method According to docs, .keys returns a list, not any iterable (this is for .iter_keys). See also mbr/simplekv#<I> | py |
diff --git a/release/e2e.py b/release/e2e.py
index <HASH>..<HASH> 100644
--- a/release/e2e.py
+++ b/release/e2e.py
@@ -660,7 +660,9 @@ def find_cloud_by_name(sdk: AnyscaleSDK, cloud_name: str,
paging_token = None
while not cloud_id:
result = sdk.search_clouds(
- clouds_query=dict(count=50,... | [ci/release] Fix cloud search query (#<I>) | py |
diff --git a/param/__init__.py b/param/__init__.py
index <HASH>..<HASH> 100644
--- a/param/__init__.py
+++ b/param/__init__.py
@@ -41,10 +41,13 @@ def produce_value(value_obj):
return value_obj
-class Forever(object):
+class Infinity(object):
"""
- An instance of this class represents an infinite t... | Renamed Forever to Infinity and explained why float('inf') cannot be used | py |
diff --git a/python/src/cm_api/endpoints/hosts.py b/python/src/cm_api/endpoints/hosts.py
index <HASH>..<HASH> 100644
--- a/python/src/cm_api/endpoints/hosts.py
+++ b/python/src/cm_api/endpoints/hosts.py
@@ -108,6 +108,14 @@ class ApiHost(BaseApiObject):
resp = self._get_resource_root().post(path, data=data)
r... | [host] Support for setting rack id | py |
diff --git a/pandas/tests/io/parser/test_parse_dates.py b/pandas/tests/io/parser/test_parse_dates.py
index <HASH>..<HASH> 100644
--- a/pandas/tests/io/parser/test_parse_dates.py
+++ b/pandas/tests/io/parser/test_parse_dates.py
@@ -1975,3 +1975,16 @@ def test_replace_nans_before_parsing_dates(all_parsers):
}
... | TST: read_csv raisin error with string dtype and parse dates (#<I>) | py |
diff --git a/validator/txnintegration/validator_manager.py b/validator/txnintegration/validator_manager.py
index <HASH>..<HASH> 100644
--- a/validator/txnintegration/validator_manager.py
+++ b/validator/txnintegration/validator_manager.py
@@ -59,7 +59,10 @@ class ValidatorManager(object):
self._data_dir = data... | ValidatorManager: prefer KeyFile for static nodes | py |
diff --git a/scapy/main.py b/scapy/main.py
index <HASH>..<HASH> 100644
--- a/scapy/main.py
+++ b/scapy/main.py
@@ -480,16 +480,11 @@ def interact(mydict=None,argv=None,mybanner=None,loglevel=20):
banner = the_banner + " using IPython %s\n" % IPython.__version__
from IPython.terminal.embed import Inter... | Remove IPython-specific tab completion | py |
diff --git a/numina/exceptions.py b/numina/exceptions.py
index <HASH>..<HASH> 100644
--- a/numina/exceptions.py
+++ b/numina/exceptions.py
@@ -17,9 +17,16 @@
# along with Numina. If not, see <http://www.gnu.org/licenses/>.
#
-'''Exceptions for the numina package.'''
+"""Exceptions for the numina package."""
+#... | Use GTC exception NotFound instead of NoResultFound when run in GTC | py |
diff --git a/vel/api/model_config.py b/vel/api/model_config.py
index <HASH>..<HASH> 100644
--- a/vel/api/model_config.py
+++ b/vel/api/model_config.py
@@ -87,8 +87,8 @@ class ModelConfig:
self.filename = filename
self.device = device
self.reset = reset
- self.seed = seed if seed is not... | Changing default seed to depend on run number. | py |
diff --git a/galpy/potential/TwoPowerSphericalPotential.py b/galpy/potential/TwoPowerSphericalPotential.py
index <HASH>..<HASH> 100644
--- a/galpy/potential/TwoPowerSphericalPotential.py
+++ b/galpy/potential/TwoPowerSphericalPotential.py
@@ -267,7 +267,7 @@ class DehnenSphericalPotential(TwoPowerSphericalPotential):
... | addendum to last commit. forgot to push all the changes. | py |
diff --git a/python/pyspark/sql/dataframe.py b/python/pyspark/sql/dataframe.py
index <HASH>..<HASH> 100644
--- a/python/pyspark/sql/dataframe.py
+++ b/python/pyspark/sql/dataframe.py
@@ -1014,7 +1014,7 @@ class DataFrame(object):
@ignore_unicode_prefix
def withColumnRenamed(self, existing, new):
- ""... | [SPARK-<I>][SQL] DataFrame.drop in Python for dropping columns. | py |
diff --git a/noseprogressive/plugin.py b/noseprogressive/plugin.py
index <HASH>..<HASH> 100644
--- a/noseprogressive/plugin.py
+++ b/noseprogressive/plugin.py
@@ -20,16 +20,6 @@ class ProgressivePlugin(Plugin):
# TODO: Decrease score so we run early, and monkeypatch stderr in __init__.
# See if that works.
... | Delete useless (for now) options() and configure() methods. | py |
diff --git a/nidmresults/graph.py b/nidmresults/graph.py
index <HASH>..<HASH> 100644
--- a/nidmresults/graph.py
+++ b/nidmresults/graph.py
@@ -105,10 +105,11 @@ class NIDMResults():
self.model_fittings[0].rms_map.file.filename
self.info['ResidualMeanSquaresMap_inWorldCoordinateSystem'] = \... | PEP8 compliance (added variable name) | py |
diff --git a/km3pipe/pumps/hdf5.py b/km3pipe/pumps/hdf5.py
index <HASH>..<HASH> 100644
--- a/km3pipe/pumps/hdf5.py
+++ b/km3pipe/pumps/hdf5.py
@@ -24,7 +24,7 @@ class HDF5Pump(Pump):
self.filename = self.get('filename')
self._store = pd.HDFStore(self.filename)
self._hits_by_event = self._stor... | Renames blob key to HitTable | py |
diff --git a/pysnow/client.py b/pysnow/client.py
index <HASH>..<HASH> 100644
--- a/pysnow/client.py
+++ b/pysnow/client.py
@@ -149,7 +149,7 @@ class OAuthClient(Client):
token = None
def __init__(self, client_id=None, client_secret=None, token_updater=None, *args, **kwargs):
- if (client_id or client... | Pass full token to OAuth2Session.token | py |
diff --git a/bitex/http/client.py b/bitex/http/client.py
index <HASH>..<HASH> 100644
--- a/bitex/http/client.py
+++ b/bitex/http/client.py
@@ -30,13 +30,10 @@ class Client:
self._api = api
self._name = name
- def _query(self, method, q={}, private=False, **kwargs):
+ def query(self, method, po... | integrated new api class; passes on args only now | py |
diff --git a/astrobase/varclass/fakelcrecovery.py b/astrobase/varclass/fakelcrecovery.py
index <HASH>..<HASH> 100644
--- a/astrobase/varclass/fakelcrecovery.py
+++ b/astrobase/varclass/fakelcrecovery.py
@@ -836,6 +836,7 @@ def plot_varind_gridsearch_results(gridresults):
'stet_mcc':stet_mcc,
'... | fakelcrecovery: add in items that one varindex found but other missed | py |
diff --git a/canmatrix/canmatrix.py b/canmatrix/canmatrix.py
index <HASH>..<HASH> 100644
--- a/canmatrix/canmatrix.py
+++ b/canmatrix/canmatrix.py
@@ -351,7 +351,7 @@ class Signal(object):
Add Attribute to Signal
"""
if attribute not in self._attributes:
- self._attributes[attribut... | fix for #<I>: fixes issue with signal-attributes (which were cut) | py |
diff --git a/scripts/make_dist.py b/scripts/make_dist.py
index <HASH>..<HASH> 100644
--- a/scripts/make_dist.py
+++ b/scripts/make_dist.py
@@ -11,8 +11,11 @@ import sys
import javascript_minifier
from version import version, implementation
-if sys.version_info[0] != 3:
- raise ValueError("This script only works ... | make_dist.py stops with a message if run by a CPython version lesser than the version supported by Brython (cf. issue #<I>) | py |
diff --git a/src/hunter.py b/src/hunter.py
index <HASH>..<HASH> 100644
--- a/src/hunter.py
+++ b/src/hunter.py
@@ -131,8 +131,9 @@ class Tracer(object):
predicate = Q(*predicates, **options)
previous_tracer = sys.gettrace()
- if previous_tracer is self and merge:
- self._handler |=... | If not merging then don't keep self as a previous tracer. Closes #<I>. | py |
diff --git a/examples/harmonic-oscillators/harmonic-oscillators.py b/examples/harmonic-oscillators/harmonic-oscillators.py
index <HASH>..<HASH> 100644
--- a/examples/harmonic-oscillators/harmonic-oscillators.py
+++ b/examples/harmonic-oscillators/harmonic-oscillators.py
@@ -945,7 +945,7 @@ for i in range(nbins):
print... | fix typo in comment in harmonic_oscillators.py | py |
diff --git a/numina/core/oresult.py b/numina/core/oresult.py
index <HASH>..<HASH> 100644
--- a/numina/core/oresult.py
+++ b/numina/core/oresult.py
@@ -21,6 +21,8 @@
Results of the Observing Blocks
'''
+import warnings
+
import six
from astropy.io import fits
@@ -63,11 +65,17 @@ def obsres_from_dict(values):
... | Accept 'frames' instead of 'images', but raise a warning | py |
diff --git a/qiime_tools/otu_calc.py b/qiime_tools/otu_calc.py
index <HASH>..<HASH> 100644
--- a/qiime_tools/otu_calc.py
+++ b/qiime_tools/otu_calc.py
@@ -47,7 +47,8 @@ def otu_name_biom(biom_row):
Given an OTU row from a BIOM table, determine a Genus-species identifier
from the taxonomic specifier (see otu_n... | Fixes missed error in copying of otu_name_biom(biom_row). Now returns a value. | py |
diff --git a/zroya/python/setup.py b/zroya/python/setup.py
index <HASH>..<HASH> 100644
--- a/zroya/python/setup.py
+++ b/zroya/python/setup.py
@@ -2,9 +2,9 @@ from setuptools import setup, Extension
import shutil
import os
-includes_list = ["../include", "../include/python" ]
+includes_list = ["./zroya/include", ".... | Paths edited Changed paths in setup.py to enable building from project root, not the directory setup.py is in. | py |
diff --git a/dragonpy/cpu_utils/instruction_caller.py b/dragonpy/cpu_utils/instruction_caller.py
index <HASH>..<HASH> 100644
--- a/dragonpy/cpu_utils/instruction_caller.py
+++ b/dragonpy/cpu_utils/instruction_caller.py
@@ -67,3 +67,26 @@ class OpCollection(object):
func = getattr(instrution_class, func_nam... | print all catched Ops vial decorator | py |
diff --git a/pandas/util/testing.py b/pandas/util/testing.py
index <HASH>..<HASH> 100644
--- a/pandas/util/testing.py
+++ b/pandas/util/testing.py
@@ -1052,6 +1052,14 @@ def network(t, url="http://www.google.com",
error_classes : tuple or Exception
error classes to ignore. If not in ``error_classes``, rai... | DOC: document changes to @network | py |
diff --git a/dddp/apps.py b/dddp/apps.py
index <HASH>..<HASH> 100644
--- a/dddp/apps.py
+++ b/dddp/apps.py
@@ -1,6 +1,5 @@
"""Django DDP app config."""
-
-from __future__ import print_function
+import warnings
from django.apps import AppConfig
from django.conf import settings, ImproperlyConfigured
@@ -15,18 +14,19... | Fixed #7 -- Warn if using DB engines other than psycopg2. | py |
diff --git a/src/transformers/trainer_pt_utils.py b/src/transformers/trainer_pt_utils.py
index <HASH>..<HASH> 100644
--- a/src/transformers/trainer_pt_utils.py
+++ b/src/transformers/trainer_pt_utils.py
@@ -155,6 +155,7 @@ def distributed_concat(tensor: "torch.Tensor", num_total_examples: Optional[int]
ret... | Fix exception in prediction loop occurring for certain batch sizes (#<I>) * fix distributed_concat for scalar outputs * Update README.md * fixed typo (#<I>) * simplify fix with terser syntax | py |
diff --git a/indra/tools/assemble_corpus.py b/indra/tools/assemble_corpus.py
index <HASH>..<HASH> 100644
--- a/indra/tools/assemble_corpus.py
+++ b/indra/tools/assemble_corpus.py
@@ -98,6 +98,9 @@ def map_grounding(stmts_in, **kwargs):
A user supplied grounding map which maps a string to a
dictionary ... | Propagate Deft option into assemble corpus | py |
diff --git a/slither/tools/flattening/flattening.py b/slither/tools/flattening/flattening.py
index <HASH>..<HASH> 100644
--- a/slither/tools/flattening/flattening.py
+++ b/slither/tools/flattening/flattening.py
@@ -93,6 +93,7 @@ class Flattening:
def _export_contract(self, contract, exported, list_contract):
... | slither-flat: stop early the exploration if the contract was seen (fix #<I>) | py |
diff --git a/src/geelweb/django/twitter_bootstrap_form/widgets.py b/src/geelweb/django/twitter_bootstrap_form/widgets.py
index <HASH>..<HASH> 100644
--- a/src/geelweb/django/twitter_bootstrap_form/widgets.py
+++ b/src/geelweb/django/twitter_bootstrap_form/widgets.py
@@ -1,5 +1,5 @@
from django.forms import widgets
-fr... | django.forms.util has been renamed | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,6 +9,7 @@ setup(name='django-notifications',
author_email='brant.young@gmail.com',
url='http://github.com/brantyoung/django-notifications',
install_requires=[
+ 'django>=1.4',
'djang... | Require django to be installed. | py |
diff --git a/elasticsearch_dsl/aggs.py b/elasticsearch_dsl/aggs.py
index <HASH>..<HASH> 100644
--- a/elasticsearch_dsl/aggs.py
+++ b/elasticsearch_dsl/aggs.py
@@ -207,6 +207,9 @@ class Terms(Bucket):
class Sampler(Bucket):
name = 'sampler'
+class DiversifiedSampler(Bucket):
+ name = 'diversified_sampler'
+
... | Add diversified sampler class. (#<I>) | py |
diff --git a/bika/lims/browser/analysisrequest/publish.py b/bika/lims/browser/analysisrequest/publish.py
index <HASH>..<HASH> 100644
--- a/bika/lims/browser/analysisrequest/publish.py
+++ b/bika/lims/browser/analysisrequest/publish.py
@@ -668,9 +668,7 @@ class AnalysisRequestPublishView(BrowserView):
... | Ignore SMTPServerDisconnect exception with log warning. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -103,7 +103,7 @@ setup(
'flask-cache>=0.13.1, <0.14',
'flask-login==0.2.11',
'future>=0.15.0, <0.16',
- 'gunicorn>=19.3.0, <20.0',
+ 'gunicorn>=19.3.0, <19.4.0', # 19.4.? seemed to hav... | [hotfix] gunicorn version <I>.? has issues serving static files | py |
diff --git a/telethon/sessions/memory.py b/telethon/sessions/memory.py
index <HASH>..<HASH> 100644
--- a/telethon/sessions/memory.py
+++ b/telethon/sessions/memory.py
@@ -202,9 +202,9 @@ class MemorySession(Session):
if username and not invite:
result = self.get_entity_rows_by_user... | Fix get entity by exact name since 2ca8ddb | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,6 +9,6 @@ setup(
#scripts=['mint/mint-import'],
author='Tim Perevezentsev',
author_email='riffm2005@gmail.com',
- py_modules=['mint']
+ py_modules=['mint'],
url='http://github.com/riffm/mint',
) | I hate night commits!!! typo again | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -20,6 +20,7 @@ tests_require = [
'coverage>=4.0',
'invenio-accounts>=1.0.1',
'invenio-db>=1.0.2',
+ 'invenio-files-rest>=1.0.0a23',
'invenio-oauth2server>=1.0.1',
'invenio-records>=1.0.0',
'inv... | installation: move files-rest to test_requires | py |
diff --git a/buildbot/master.py b/buildbot/master.py
index <HASH>..<HASH> 100644
--- a/buildbot/master.py
+++ b/buildbot/master.py
@@ -27,7 +27,8 @@ from buildbot.process.properties import Properties
from buildbot.config import BuilderConfig
from buildbot.process.builder import BuilderControl
from buildbot.db.dbspec... | Fix DBSchemaManager: It is in buildbot.db.schema.manager, not buildbot.db.schema | py |
diff --git a/pynspect/__init__.py b/pynspect/__init__.py
index <HASH>..<HASH> 100644
--- a/pynspect/__init__.py
+++ b/pynspect/__init__.py
@@ -16,4 +16,4 @@ data structures.
"""
-__version__ = "0.12"
+__version__ = "0.13" | DEPLOY: Increased package version to '<I>' to build new distribution. | py |
diff --git a/tryp/maybe.py b/tryp/maybe.py
index <HASH>..<HASH> 100644
--- a/tryp/maybe.py
+++ b/tryp/maybe.py
@@ -14,6 +14,8 @@ B = TypeVar('B')
class Maybe(Iterable[A], Generic[A]):
+ __slots__ = ()
+
def __new__(tp, value: A, checker=partial(is_not, None)):
return Maybe.inst(value, checker) | set __slots__ attribute in Maybe as it is ignored in Just when its superclass has a __dict__ | py |
diff --git a/grimoire_elk/enriched/kitsune.py b/grimoire_elk/enriched/kitsune.py
index <HASH>..<HASH> 100644
--- a/grimoire_elk/enriched/kitsune.py
+++ b/grimoire_elk/enriched/kitsune.py
@@ -86,7 +86,6 @@ class KitsuneEnrich(Enrich):
def get_identities(self, item):
""" Return the identities from an item... | [enrich-kitsune] Replace list with yield This code replaces the list used in the method get_identities with a yield, thus reducing the memory footprint. | py |
diff --git a/lenses/optics/base.py b/lenses/optics/base.py
index <HASH>..<HASH> 100644
--- a/lenses/optics/base.py
+++ b/lenses/optics/base.py
@@ -216,17 +216,11 @@ class LensLike(object):
Requires kind Isomorphism. Raises TypeError for non-isomorphic
lenses.
'''
- if not self._is_kind... | simplified LensLike.from_ and LensLike.re these functions are overridden in the appropriate subclasses so no need to check suitability. | py |
diff --git a/bika/lims/browser/aggregatedanalyses/aggregatedanalyses.py b/bika/lims/browser/aggregatedanalyses/aggregatedanalyses.py
index <HASH>..<HASH> 100644
--- a/bika/lims/browser/aggregatedanalyses/aggregatedanalyses.py
+++ b/bika/lims/browser/aggregatedanalyses/aggregatedanalyses.py
@@ -96,8 +96,6 @@ class Aggre... | Remove surplus. Do not show Partitions column if not set in Bika Setup The functionality is already managed by the base class (AnalysesView), so there is no need to do it again here. | py |
diff --git a/cumulusci/newcli/cli.py b/cumulusci/newcli/cli.py
index <HASH>..<HASH> 100644
--- a/cumulusci/newcli/cli.py
+++ b/cumulusci/newcli/cli.py
@@ -36,7 +36,10 @@ class CliConfig(object):
def _load_keychain(self):
self.keychain_key = os.environ.get('CUMULUSCI_KEY')
if self.project_config a... | Make keychain class pluggable in cumulusci2 via CUMULUSCI_KEYCHAIN_CLASS environment variable | py |
diff --git a/fluent_contents/templatetags/placeholder_tags.py b/fluent_contents/templatetags/placeholder_tags.py
index <HASH>..<HASH> 100644
--- a/fluent_contents/templatetags/placeholder_tags.py
+++ b/fluent_contents/templatetags/placeholder_tags.py
@@ -1,14 +1,32 @@
import warnings
+from django.template import Lib... | Improved warning from placeholder_tags usage The previous deprecation warning mechanism in placeholder_tags.py threw a warning whether it was used or not, so I adjusted it slightly to only emit the warning if a template tag is used. | py |
diff --git a/mhctools/cli/script.py b/mhctools/cli/script.py
index <HASH>..<HASH> 100644
--- a/mhctools/cli/script.py
+++ b/mhctools/cli/script.py
@@ -42,8 +42,9 @@ def add_input_args(arg_parser):
default=False,
action="store_true",
help=(
- "Extract subsequences from --sequence ar... | make --extract-subsequences work for peptides file | py |
diff --git a/openquake/commands/plot.py b/openquake/commands/plot.py
index <HASH>..<HASH> 100644
--- a/openquake/commands/plot.py
+++ b/openquake/commands/plot.py
@@ -465,7 +465,7 @@ def make_figure_agg_curves(extractors, what):
def make_figure_tot_curves(extractors, what):
"""
- $ oq plot 'tot_curves?loss_t... | Fixed docstring in make_figure_tot_curves [skip CI] | py |
diff --git a/holoviews/element/path.py b/holoviews/element/path.py
index <HASH>..<HASH> 100644
--- a/holoviews/element/path.py
+++ b/holoviews/element/path.py
@@ -113,8 +113,8 @@ class Box(Path):
class Ellipse(Path):
"""
Draw an axis-aligned ellipse at the specified x,y position with
- the given radius an... | Made default Ellipse a circle. Renamed Ellipse diameter to width | py |
diff --git a/openquake/calculators/disaggregation.py b/openquake/calculators/disaggregation.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/disaggregation.py
+++ b/openquake/calculators/disaggregation.py
@@ -345,8 +345,9 @@ producing too small PoEs.'''
dic[sid, poe, imt][rlzi] = matrix
... | Fixed disaggregation [skip hazardlib] | py |
diff --git a/cities/admin.py b/cities/admin.py
index <HASH>..<HASH> 100644
--- a/cities/admin.py
+++ b/cities/admin.py
@@ -17,6 +17,7 @@ class ContinentAdmin(CitiesAdmin):
class CountryAdmin(CitiesAdmin):
list_display = ['name', 'code', 'code3', 'tld', 'phone', 'continent', 'area', 'population']
search_field... | Add filter_horizontal to neighbours field in Country model Improve selecting the neighbours in admin | py |
diff --git a/src/guake.py b/src/guake.py
index <HASH>..<HASH> 100644
--- a/src/guake.py
+++ b/src/guake.py
@@ -491,6 +491,7 @@ class Guake(SimpleGladeApp):
self.window.move(0, 0)
self.resize(*self.get_final_window_size())
self.window.show_all()
+ self.window.window.focus()
def h... | after some research about #2, I found gdk.Window.focus that sends a _NET_ACTIVE_WINDOW to X to say which window should be actived, I am not sure that this is going to be enough, but it worked in my tests. (closes #2) | py |
diff --git a/tests/unit/modules/test_file.py b/tests/unit/modules/test_file.py
index <HASH>..<HASH> 100644
--- a/tests/unit/modules/test_file.py
+++ b/tests/unit/modules/test_file.py
@@ -1556,7 +1556,7 @@ class FilemodLineTests(TestCase, LoaderModuleMockMixin):
mock_open(read_data=file_content)),... | Add 'name' as the passed in filepath for test_line_insert_ensure_before_first_line test With 'foo', the test fails with an unknown file KeyError - we need to use the "name" variable instead. Fixes the test_line_insert_ensure_before_first_line test. | py |
diff --git a/mapchete/io/raster.py b/mapchete/io/raster.py
index <HASH>..<HASH> 100644
--- a/mapchete/io/raster.py
+++ b/mapchete/io/raster.py
@@ -129,12 +129,6 @@ def _get_warped_array(
dst_affine=None, dst_crs=None, resampling="nearest"
):
"""Extract a numpy array from a raster file."""
- assert isinsta... | removed assert statements to close #<I> | py |
diff --git a/javasphinx/compiler.py b/javasphinx/compiler.py
index <HASH>..<HASH> 100644
--- a/javasphinx/compiler.py
+++ b/javasphinx/compiler.py
@@ -263,10 +263,10 @@ class JavadocRestCompiler(object):
f.add_option('outertype', name)
document.add_object(f)
- constructors = f... | Compiler: List copies were sorted instead of the original lists. Fixed. | py |
diff --git a/openprocurement_client/tests/tests.py b/openprocurement_client/tests/tests.py
index <HASH>..<HASH> 100644
--- a/openprocurement_client/tests/tests.py
+++ b/openprocurement_client/tests/tests.py
@@ -379,6 +379,7 @@ class UserTestCase(unittest.TestCase):
setup_routing(self.app, routs=['tender_patch_... | check 'data' key in response | py |
diff --git a/skal.py b/skal.py
index <HASH>..<HASH> 100644
--- a/skal.py
+++ b/skal.py
@@ -13,7 +13,7 @@
# limitations under the License.
-__version__ = '0.1.0'
+__version__ = '0.1.1'
__project_url__ = 'https://github.com/looplab/skal'
@@ -48,17 +48,16 @@ class SkalApp(object):
"""Creates the argpars... | Make getting the version string more robust Also only add the version flag to the main parser if there is a version for the module of the class. | py |
diff --git a/dataviews/plots.py b/dataviews/plots.py
index <HASH>..<HASH> 100644
--- a/dataviews/plots.py
+++ b/dataviews/plots.py
@@ -720,7 +720,7 @@ class GridLayoutPlot(Plot):
object.
"""
- horizontal_spacing = param.Number(default=0.4, doc="""
+ horizontal_spacing = param.Number(default=0.5, doc="... | Fixed GridLayout spacing to be more conservative | py |
diff --git a/emannotationschemas/flatten.py b/emannotationschemas/flatten.py
index <HASH>..<HASH> 100644
--- a/emannotationschemas/flatten.py
+++ b/emannotationschemas/flatten.py
@@ -35,6 +35,6 @@ def create_flattened_schema(BaseSchema, sep="_"):
schema_name = BaseSchema.__name__ if hasattr(BaseSchema, "__name__... | chore: use f-strings | py |
diff --git a/Legobot/Connectors/Slack.py b/Legobot/Connectors/Slack.py
index <HASH>..<HASH> 100644
--- a/Legobot/Connectors/Slack.py
+++ b/Legobot/Connectors/Slack.py
@@ -400,7 +400,7 @@ class Slack(Lego):
return str(self.botThread) != str(message['metadata']['source'])
- def build_attachment(self, text... | update attachment code to send attachments in threads if possible. | py |
diff --git a/dfttopif/parsers/vasp.py b/dfttopif/parsers/vasp.py
index <HASH>..<HASH> 100644
--- a/dfttopif/parsers/vasp.py
+++ b/dfttopif/parsers/vasp.py
@@ -276,7 +276,7 @@ class VaspParser(DFTParser):
"""Get the bandgap from the EIGENVAL file"""
with open(outcar_fname, "r") as f:
parse... | filter returns list in python2 | py |
diff --git a/services/modules/seat/manager.py b/services/modules/seat/manager.py
index <HASH>..<HASH> 100644
--- a/services/modules/seat/manager.py
+++ b/services/modules/seat/manager.py
@@ -264,5 +264,5 @@ class SeatManager:
@staticmethod
def username_hash(username):
m = hashlib.sha1()
- m.up... | Correct username hashing on py3 | py |
diff --git a/salt/states/archive.py b/salt/states/archive.py
index <HASH>..<HASH> 100644
--- a/salt/states/archive.py
+++ b/salt/states/archive.py
@@ -8,6 +8,7 @@ Extract an archive
# Import Python libs
from __future__ import absolute_import
import os
+import re
import logging
import tarfile
from contextlib impor... | Using cmd.retcode with an exit code different from zero will taint the '--retcode-passthrough' option. using python's regex instead of grep. | py |
diff --git a/python-package/lightgbm/basic.py b/python-package/lightgbm/basic.py
index <HASH>..<HASH> 100644
--- a/python-package/lightgbm/basic.py
+++ b/python-package/lightgbm/basic.py
@@ -2485,10 +2485,12 @@ class Dataset:
"""
if self.handle is not None:
if isinstance(feature, str):
- ... | [python-package] fix mypy error about type change in Dataset.feature_num_bin() (#<I>) | py |
diff --git a/phy/cluster/view_models.py b/phy/cluster/view_models.py
index <HASH>..<HASH> 100644
--- a/phy/cluster/view_models.py
+++ b/phy/cluster/view_models.py
@@ -896,6 +896,7 @@ class BaseFeatureViewModel(VispyViewModel):
def on_key_press(self, event):
"""Handle key press events."""
+ super(... | Fixed h which didn't work in feature views. | py |
diff --git a/hole/__init__.py b/hole/__init__.py
index <HASH>..<HASH> 100644
--- a/hole/__init__.py
+++ b/hole/__init__.py
@@ -45,7 +45,7 @@ class Hole(object):
async with async_timeout.timeout(5, loop=self._loop):
response = await self._session.get(self.base_url)
- _LOGGER.in... | downgrade get_data response code logging from INFO to DEBUG (#5) | py |
diff --git a/ryu/app/wsapi.py b/ryu/app/wsapi.py
index <HASH>..<HASH> 100644
--- a/ryu/app/wsapi.py
+++ b/ryu/app/wsapi.py
@@ -484,8 +484,8 @@ class WSPathArbitraryString(WSPathComponent):
WSPathComponent.__init__(self)
self._name = name
- def __str__(self):
- return self._name
+ ... | app/wsapi/WSPathArbitraryString: wrong indent WSPathArbitraryString.__str__ method should be instance method. | py |
diff --git a/eventsourcing/test_remotenotificationlog.py b/eventsourcing/test_remotenotificationlog.py
index <HASH>..<HASH> 100644
--- a/eventsourcing/test_remotenotificationlog.py
+++ b/eventsourcing/test_remotenotificationlog.py
@@ -38,7 +38,7 @@ class TestRemoteNotificationLog(TestCase):
)
def test_w... | Trying to run HTTP server on Travis. | py |
diff --git a/lib/svtplay_dl/output.py b/lib/svtplay_dl/output.py
index <HASH>..<HASH> 100644
--- a/lib/svtplay_dl/output.py
+++ b/lib/svtplay_dl/output.py
@@ -159,7 +159,7 @@ def findexpisode(directory, service, name):
if extention == "srt":
if name.find(service) and match.group(1)... | findexpisode: don’t run the second section for .srt files this fixes: #<I> | py |
diff --git a/{{cookiecutter.project_slug}}/config/urls.py b/{{cookiecutter.project_slug}}/config/urls.py
index <HASH>..<HASH> 100644
--- a/{{cookiecutter.project_slug}}/config/urls.py
+++ b/{{cookiecutter.project_slug}}/config/urls.py
@@ -13,7 +13,7 @@ urlpatterns = [
url(r'^about/$', TemplateView.as_view(template... | change 'admin' url, to stay the same as generated by django <I> <URL> | py |
diff --git a/zeronimotests.py b/zeronimotests.py
index <HASH>..<HASH> 100644
--- a/zeronimotests.py
+++ b/zeronimotests.py
@@ -288,7 +288,7 @@ def test_device(customer1, customer2, prefix, addr1, addr2, addr3, addr4):
assert tunnel2(fanout=True).simple() == ['ok', 'ok']
-@pytest.mark.skipif('zmq.zmq_versio... | xfail instead of skipif for test_forwarder | py |
diff --git a/mongo_notebook_manager/__init__.py b/mongo_notebook_manager/__init__.py
index <HASH>..<HASH> 100644
--- a/mongo_notebook_manager/__init__.py
+++ b/mongo_notebook_manager/__init__.py
@@ -8,7 +8,10 @@ import datetime
import pymongo
-from mongodb_proxy import MongoProxy
+try:
+ from mongodb_proxy impo... | Make import python3 compatible. from .mongodb_proxy import MongoProxy could work for python2 as well, but I am not sure. Therefore added try/except | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -39,10 +39,11 @@ if "bdist_rpm" in sys.argv:
if __name__ == "__main__":
import falafel
+ name = os.environ.get("FALAFEL_NAME", falafel.NAME)
try:
setup(
- name=falafel.NAME,
+ n... | allowing package name to be overriden in bdist_rpm | py |
diff --git a/integration_tests/blockstack_integration_tests/scenarios/blockstack_client/cli.py b/integration_tests/blockstack_integration_tests/scenarios/blockstack_client/cli.py
index <HASH>..<HASH> 100644
--- a/integration_tests/blockstack_integration_tests/scenarios/blockstack_client/cli.py
+++ b/integration_tests/b... | blockstack_client is no longer in the python path | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@ from setuptools import setup, find_packages
setup(
name='blockstack-profiles',
- version='0.4.3',
+ version='0.4.4',
url='https://github.com/blockstack/blockstack-profiles-py',
license='MIT... | version bump; depend on blockstack-zones instead of zone-file | py |
diff --git a/tests/integration/test_cli_slurm.py b/tests/integration/test_cli_slurm.py
index <HASH>..<HASH> 100644
--- a/tests/integration/test_cli_slurm.py
+++ b/tests/integration/test_cli_slurm.py
@@ -7,6 +7,6 @@ from benchbuild.cli.slurm import Slurm
def test_slurm_command(tmp_path):
with pytest.raises(SystemE... | tests: switch test experiment to 'empty' | py |
diff --git a/pandas/tests/test_categorical.py b/pandas/tests/test_categorical.py
index <HASH>..<HASH> 100755
--- a/pandas/tests/test_categorical.py
+++ b/pandas/tests/test_categorical.py
@@ -86,8 +86,14 @@ class TestCategorical(tm.TestCase):
factor = Categorical.from_array(arr, ordered=False)
self.ass... | TST: unsortable only on PY3, #<I> | py |
diff --git a/src/main/config/portal/default/redbox/scripts/actions/reharvest.py b/src/main/config/portal/default/redbox/scripts/actions/reharvest.py
index <HASH>..<HASH> 100644
--- a/src/main/config/portal/default/redbox/scripts/actions/reharvest.py
+++ b/src/main/config/portal/default/redbox/scripts/actions/reharvest.... | Fix reharvest/reindex event | py |
diff --git a/recordlinkage/measures.py b/recordlinkage/measures.py
index <HASH>..<HASH> 100644
--- a/recordlinkage/measures.py
+++ b/recordlinkage/measures.py
@@ -41,10 +41,10 @@ def true_negatives(true_match_index, matches_index, n_pairs):
:rtype: int
"""
- if type(n_pairs) != int:
+ if not isinstance(n_pairs, ... | passing float in true_negatives is now accepted | py |
diff --git a/wafer/talks/forms.py b/wafer/talks/forms.py
index <HASH>..<HASH> 100644
--- a/wafer/talks/forms.py
+++ b/wafer/talks/forms.py
@@ -28,7 +28,7 @@ class TalkForm(forms.ModelForm):
class Meta:
model = Talk
- fields = ('title', 'abstract', 'authors', 'notes')
+ fields = ('title', '... | Expose talk_type in talk submission form. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.