diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/elasticutils/tests/test_query.py b/elasticutils/tests/test_query.py
index <HASH>..<HASH> 100644
--- a/elasticutils/tests/test_query.py
+++ b/elasticutils/tests/test_query.py
@@ -360,7 +360,7 @@ class FacetNoDataTest(ElasticTestCase):
for item in qs.facet_counts()['created1']]
... | Fix goof in tests We had two tests with the same name. This fixes that. | py |
diff --git a/test_isort.py b/test_isort.py
index <HASH>..<HASH> 100644
--- a/test_isort.py
+++ b/test_isort.py
@@ -466,6 +466,16 @@ def test_add_imports():
'class MyClass(object):\n'
' pass\n')
+ # On a file with no content what so ever
+ test_input = (... | Add test to assert force_adds flag works as expected | py |
diff --git a/src/_pytest/runner.py b/src/_pytest/runner.py
index <HASH>..<HASH> 100644
--- a/src/_pytest/runner.py
+++ b/src/_pytest/runner.py
@@ -422,8 +422,10 @@ class SetupState:
needed_collectors = colitem.listchain()
for col in needed_collectors[len(self.stack) :]:
+ assert col not i... | runner: replace setdefault with an unconditional set The already-exists case is not supposed to happen. | py |
diff --git a/docs/source/conf.py b/docs/source/conf.py
index <HASH>..<HASH> 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -31,7 +31,9 @@ sys.path.insert(0, os.path.abspath('../..'))
if 'READTHEDOCS' in os.environ or 'TRAVIS' in os.environ:
import mock
- MOCK_MODULES = ['numpy', 'requests']
+ ... | MNT: Don't mock requests module on Travis This break sphinx linkchecker. Soonish we'll move away from readthedocs anyways. | py |
diff --git a/goose/extractors.py b/goose/extractors.py
index <HASH>..<HASH> 100644
--- a/goose/extractors.py
+++ b/goose/extractors.py
@@ -250,6 +250,15 @@ class ContentExtractor(object):
opengraph_dict.update({attr.split(":")[1]: value})
return opengraph_dict
+ def extract_links(self):
+... | #<I> - article links extract method | py |
diff --git a/gimmemotifs/core.py b/gimmemotifs/core.py
index <HASH>..<HASH> 100644
--- a/gimmemotifs/core.py
+++ b/gimmemotifs/core.py
@@ -23,6 +23,10 @@ from gimmemotifs.background import *
from gimmemotifs.comparison import *
from gimmemotifs import genome_index
from gimmemotifs.cluster import *
+
+import matplotl... | Added Agg as default matplotlib backend, overriding posssible user-configured backend | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -41,6 +41,7 @@ cfg = dict(
'klein',
'docker',
'wrapt',
+ 'wheel',
]
},
zip_safe=False, | #<I> add wheel to dev reqs | py |
diff --git a/tests/tests-unit.py b/tests/tests-unit.py
index <HASH>..<HASH> 100644
--- a/tests/tests-unit.py
+++ b/tests/tests-unit.py
@@ -167,11 +167,11 @@ class TestOneHash(unittest.TestCase):
challenge = Challenge(block, root_seed)
chunk_size = min(1024, self.hb.file_size // 10)
- self.ass... | test error. might need to check into this as there could be incompatibilities between different versions for the size of some of these buffers...? | py |
diff --git a/pycbc/ahope/legacy_ihope.py b/pycbc/ahope/legacy_ihope.py
index <HASH>..<HASH> 100644
--- a/pycbc/ahope/legacy_ihope.py
+++ b/pycbc/ahope/legacy_ihope.py
@@ -160,8 +160,8 @@ class LegacyInspiralExecutable(LegacyAnalysisExecutable):
def create_node(self, data_seg, valid_seg, parent=None, dfParents=None... | add missing dashes in trig start /end time | py |
diff --git a/stanza/models/tokenize/data.py b/stanza/models/tokenize/data.py
index <HASH>..<HASH> 100644
--- a/stanza/models/tokenize/data.py
+++ b/stanza/models/tokenize/data.py
@@ -91,7 +91,7 @@ class DataLoader:
funcs.append(func)
# stacking all featurize functions
- composite_... | Slightly faster as a list comprehension | py |
diff --git a/angr/analyses/decompiler/empty_node_remover.py b/angr/analyses/decompiler/empty_node_remover.py
index <HASH>..<HASH> 100644
--- a/angr/analyses/decompiler/empty_node_remover.py
+++ b/angr/analyses/decompiler/empty_node_remover.py
@@ -98,6 +98,9 @@ class EmptyNodeRemover:
if claripy.is_true(node.re... | Structurer: Fix a case where certain conditions are missing. (#<I>) Having directly nested CodeNodes will lead to missing conditionals. | py |
diff --git a/pypump/models/__init__.py b/pypump/models/__init__.py
index <HASH>..<HASH> 100644
--- a/pypump/models/__init__.py
+++ b/pypump/models/__init__.py
@@ -65,7 +65,10 @@ class PumpObject(object):
if pypump:
self._pump = pypump
- self._mapping.update(PumpObject._mapping)
+ m... | Update PumpObject._mapping with self ..instead of other way around, allows us to override attributes | py |
diff --git a/casacore/images/coordinates.py b/casacore/images/coordinates.py
index <HASH>..<HASH> 100644
--- a/casacore/images/coordinates.py
+++ b/casacore/images/coordinates.py
@@ -287,6 +287,9 @@ class spectralcoordinate(coordinate):
def get_restfrequency(self):
return self._coord.get("restfreq", None)... | Add setter for rest frequency, fixes #<I> | py |
diff --git a/salt/states/mount.py b/salt/states/mount.py
index <HASH>..<HASH> 100644
--- a/salt/states/mount.py
+++ b/salt/states/mount.py
@@ -32,7 +32,7 @@ import os.path
import re
# Import salt libs
-from six import string_types
+from salt.utils.six import string_types
import logging
import salt.utils.six as ... | Replaced module six in file /salt/states/mount.py | py |
diff --git a/cherrypy/lib/httputil.py b/cherrypy/lib/httputil.py
index <HASH>..<HASH> 100644
--- a/cherrypy/lib/httputil.py
+++ b/cherrypy/lib/httputil.py
@@ -122,7 +122,7 @@ class HeaderElement(object):
def __str__(self):
p = [";%s=%s" % (k, v) for k, v in iteritems(self.params)]
- return "%s%s"... | Fixed issue in HeaderElement.__str__ where it could sometimes return a non-native string. --HG-- branch : cherrypy-<I>.x | py |
diff --git a/tests/test_core.py b/tests/test_core.py
index <HASH>..<HASH> 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -26,14 +26,15 @@ logger = logging.getLogger(__name__)
# pylint: disable=len-as-condition
-@pytest.fixture
+@pytest.fixture(autouse=True)
def env():
orig_env = dict(os.environ)... | Tweak pytest fixture | 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
@@ -87,6 +87,8 @@ def integratePlanarOrbit_c(pot,yo,t,int_method,rtol=None,atol=None):
int_metho... | 6th order symplectic integrator | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -66,6 +66,6 @@ setup(
'autofixture',
'autofixture.management',
'autofixture.management.commands'],
- install_requires = ['setuptools'],
+ install_requires = ['setuptools', 'six'],
test_sui... | Added "six" package to dependencies. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,7 @@ if version_info < (2, 7):
setup(
name='bedup',
- version='0.0.3',
+ version='0.0.4',
author='Gabriel de Perthuis',
author_email='g2p.code+bedup@gmail.com',
url='https://github.com/g2... | Re-release, because markdown on PyPI doesn't work well. The switch to Distribute somehow caused README.md to be picked up as the long_description. | py |
diff --git a/cloudvolume/datasource/precomputed/metadata.py b/cloudvolume/datasource/precomputed/metadata.py
index <HASH>..<HASH> 100644
--- a/cloudvolume/datasource/precomputed/metadata.py
+++ b/cloudvolume/datasource/precomputed/metadata.py
@@ -627,7 +627,7 @@ Hops:
# the mip 1 will have an offset of 5
#... | fix: sometimes add_scale complains about chunk_size as a list or array | py |
diff --git a/insane/core.py b/insane/core.py
index <HASH>..<HASH> 100755
--- a/insane/core.py
+++ b/insane/core.py
@@ -331,7 +331,7 @@ class Structure(object):
for idx, (atom, (x, y, z)) in atom_enumeration:
atname, resname, resid = atom[:3]
if resname.endswith('.o'):
- ... | Restore iteration over old topology lipids An old variable name was kept breaking iteration on old topology lipid. Fixes #<I> | py |
diff --git a/bcbio/isatab/parser.py b/bcbio/isatab/parser.py
index <HASH>..<HASH> 100644
--- a/bcbio/isatab/parser.py
+++ b/bcbio/isatab/parser.py
@@ -281,6 +281,13 @@ class StudyAssayParser:
"""
if header.find("[") >= 0:
header = header.replace("]", "").split("[")[-1]
+ # ISATab c... | Python namedtuples do not allow numbers as first characters. Prefix ISATab headers that start with number to avoid error. | py |
diff --git a/tests/test_connectivity.py b/tests/test_connectivity.py
index <HASH>..<HASH> 100644
--- a/tests/test_connectivity.py
+++ b/tests/test_connectivity.py
@@ -44,6 +44,7 @@ class TestFunctionality(unittest.TestCase):
self.assertTrue(np.all(l(c.PHI()) == -l(c.PHI()).T))
# Coherence should be 1 ... | FIX: added test for COH <= 1 | py |
diff --git a/rejected.py b/rejected.py
index <HASH>..<HASH> 100755
--- a/rejected.py
+++ b/rejected.py
@@ -144,7 +144,10 @@ class ConsumerThread( threading.Thread ):
# If we're compressed in message body, decompress it
if self.compressed:
- message.body = zlib.decompress(message.b... | Catch an exception that was happening with zlib | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,7 @@ except:
setup(
name='yahooscraper',
- version='0.2.0',
+ version='0.2.1',
description='Utilities for scraping Yahoo pages',
long_description=long_description,
license='MIT', | Bump to version <I> | py |
diff --git a/gns3server/modules/dynamips/nodes/router.py b/gns3server/modules/dynamips/nodes/router.py
index <HASH>..<HASH> 100644
--- a/gns3server/modules/dynamips/nodes/router.py
+++ b/gns3server/modules/dynamips/nodes/router.py
@@ -228,6 +228,8 @@ class Router(BaseVM):
"""
status = yield from sel... | Raise a DynamipsError if we can't access to VM status Fix #<I> | py |
diff --git a/sdk/python/sawtooth_sdk/processor/state.py b/sdk/python/sawtooth_sdk/processor/state.py
index <HASH>..<HASH> 100644
--- a/sdk/python/sawtooth_sdk/processor/state.py
+++ b/sdk/python/sawtooth_sdk/processor/state.py
@@ -34,7 +34,7 @@ class State(object):
self._stream = stream
self._context_... | Add set_state, get_state, delete_state methods Context.set() and Context.get() are bad names because they are ambiguous, but will continue to be supported for backwards compatibility. | py |
diff --git a/dictmixin/__init__.py b/dictmixin/__init__.py
index <HASH>..<HASH> 100644
--- a/dictmixin/__init__.py
+++ b/dictmixin/__init__.py
@@ -13,7 +13,7 @@ except ImportError:
pass
__title__ = 'dictmixin'
-__version__ = '1.0.0a2'
+__version__ = '1.0.0b1'
__author__ = 'tadashi-aikawa'
__license__ = 'MIT' | :package: version <I>b1 | py |
diff --git a/bugzilla/base.py b/bugzilla/base.py
index <HASH>..<HASH> 100644
--- a/bugzilla/base.py
+++ b/bugzilla/base.py
@@ -760,6 +760,7 @@ class BugzillaBase(object):
assigned_to: Bugzilla username to assign this bug to.
qa_contact: Bugzilla username of QA contact for this bug.
cc: ... | document 'keywords' as optional createbug param (ticket #<I>) Add a line about the 'keywords' param for createbug, which takes a list of keywords that should be set on the new bug. | py |
diff --git a/python/pyspark/worker.py b/python/pyspark/worker.py
index <HASH>..<HASH> 100644
--- a/python/pyspark/worker.py
+++ b/python/pyspark/worker.py
@@ -146,5 +146,5 @@ if __name__ == '__main__':
java_port = int(sys.stdin.readline())
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.con... | [SPARK-<I>] [PYSPARK] fix open mode in python3 This bug only happen on Python 3 and Windows. I tested this manually with python 3 and disable python daemon, no unit test yet. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,11 +6,10 @@ import shlex
import subprocess
import unittest
+import pkg_resources
from distutils import cmd
from setuptools import setup
from setuptools.command.install import install
-from pip.download import PipSess... | use requirements parsing from pkg_resources due to breaking API changes in pip | py |
diff --git a/filer/tests/admin.py b/filer/tests/admin.py
index <HASH>..<HASH> 100644
--- a/filer/tests/admin.py
+++ b/filer/tests/admin.py
@@ -529,6 +529,18 @@ class FilerBulkOperationsTests(BulkOperationsMixin, TestCase):
'destination': self.dst_folder.id,
helpers.ACTION_CHECKBOX_NAME: 'file-... | Test if copying to the same folder gives <I> response | py |
diff --git a/coloredlogs.py b/coloredlogs.py
index <HASH>..<HASH> 100755
--- a/coloredlogs.py
+++ b/coloredlogs.py
@@ -57,13 +57,16 @@ class ColoredStreamHandler(logging.StreamHandler):
self.hostname = re.sub('\.local$', '', socket.gethostname())
self.pid = os.getpid()
+ def render_timestamp(self... | render timestamp in its own method so callers can override its format | py |
diff --git a/python_modules/dagster/setup.py b/python_modules/dagster/setup.py
index <HASH>..<HASH> 100644
--- a/python_modules/dagster/setup.py
+++ b/python_modules/dagster/setup.py
@@ -75,7 +75,7 @@ if __name__ == "__main__":
"rx<=1.6.1", # 3.0 was a breaking change.
"tabulate",
... | pin sqlalchemy Summary: While we sort out the breaking issue Test Plan: BK Reviewers: alangenfeld, prha Reviewed By: alangenfeld Differential Revision: <URL> | py |
diff --git a/src/_pytest/config/__init__.py b/src/_pytest/config/__init__.py
index <HASH>..<HASH> 100644
--- a/src/_pytest/config/__init__.py
+++ b/src/_pytest/config/__init__.py
@@ -1,6 +1,7 @@
""" command line options, ini-file and conftest.py processing. """
from __future__ import absolute_import, division, print_... | Use functools.lru_cache with _getconftest_pathlist For pytest's own suite the `cache_info()` looks as follows: > session.config._getconftest_pathlist.cache_info() CacheInfo(hits=<I>, misses=<I>, maxsize=None, currsize=<I>) While it does not really make a difference for me this might help with larger test sui... | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@ from distutils.core import setup
# Keeping it quite minimal here...
setup(
name='saferedisqueue',
- version='0.2.1',
+ version='0.2.2',
description='A small wrapper around Redis that provides acc... | bumped version to <I> | py |
diff --git a/engines/__init__.py b/engines/__init__.py
index <HASH>..<HASH> 100644
--- a/engines/__init__.py
+++ b/engines/__init__.py
@@ -68,7 +68,6 @@ def _init():
continue
engines[handle] = member
- globals()[name] = member
_init() | Don't support directly importable engine classes. | py |
diff --git a/mbed/mbed.py b/mbed/mbed.py
index <HASH>..<HASH> 100644
--- a/mbed/mbed.py
+++ b/mbed/mbed.py
@@ -848,7 +848,7 @@ class Program(object):
err = (
"Could not find mbed program in current path. Assuming current dir.\n"
"You can fix this by calling \"mbed new .\" ... | Fixed output message to user regarding requirements Added error code to error message that a program is not found in the current path | py |
diff --git a/metpy/calc/thermo.py b/metpy/calc/thermo.py
index <HASH>..<HASH> 100644
--- a/metpy/calc/thermo.py
+++ b/metpy/calc/thermo.py
@@ -1213,7 +1213,8 @@ def cape_cin(pressure, temperature, dewpt, parcel_profile):
"""
# Calculate LFC limit of integration
- lfc_pressure = lfc(pressure, temperature,... | Pass parcel profile through cape_cin calculation. | py |
diff --git a/exa/_version.py b/exa/_version.py
index <HASH>..<HASH> 100644
--- a/exa/_version.py
+++ b/exa/_version.py
@@ -5,5 +5,5 @@
Version Number
######################
"""
-version_info = (0, 3, 15)
+version_info = (0, 4, 0)
__version__ = ".".join(map(str, version_info)) | Beta status starting with <I> | py |
diff --git a/tests/providers/snowflake/hooks/test_snowflake.py b/tests/providers/snowflake/hooks/test_snowflake.py
index <HASH>..<HASH> 100644
--- a/tests/providers/snowflake/hooks/test_snowflake.py
+++ b/tests/providers/snowflake/hooks/test_snowflake.py
@@ -20,7 +20,7 @@ import re
import unittest
from copy import de... | Fix MyPy issues with ``test_snowflake.py`` (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -27,7 +27,7 @@ def extras_require():
def main():
setup(
name='straitlets',
- version='0.2.6',
+ version='0.2.7',
description="Serializable IPython Traitlets",
author="Quantopian T... | REL: Bump to <I>. | py |
diff --git a/scripts/performance/perf_spike_load.py b/scripts/performance/perf_spike_load.py
index <HASH>..<HASH> 100644
--- a/scripts/performance/perf_spike_load.py
+++ b/scripts/performance/perf_spike_load.py
@@ -54,9 +54,10 @@ def spikes(test_config, spike_fn):
total_test_time = test_config["profile"]["total_ti... | Fixed an error when spikes were called multiple times. | py |
diff --git a/bittrex/bittrex.py b/bittrex/bittrex.py
index <HASH>..<HASH> 100644
--- a/bittrex/bittrex.py
+++ b/bittrex/bittrex.py
@@ -28,6 +28,8 @@ BUY_ORDERBOOK = 'buy'
SELL_ORDERBOOK = 'sell'
BOTH_ORDERBOOK = 'both'
+TRADE_FEE = 0.0025
+
TICKINTERVAL_ONEMIN = 'oneMin'
TICKINTERVAL_FIVEMIN = 'fiveMin'
TICKINTE... | Added constant for <I>% trade fee (#<I>) <I>% Trade Fee: <URL> | py |
diff --git a/entei.py b/entei.py
index <HASH>..<HASH> 100755
--- a/entei.py
+++ b/entei.py
@@ -76,6 +76,10 @@ def tokenize(template):
while not template.is_finished:
literal = grab_literal()
+ if template.is_finished:
+ yield ('literal', literal)
+ break
+
if litera... | Move the last literal yield up higher Moved it above the standalone checking | py |
diff --git a/tests/test_vcs.py b/tests/test_vcs.py
index <HASH>..<HASH> 100755
--- a/tests/test_vcs.py
+++ b/tests/test_vcs.py
@@ -269,3 +269,26 @@ def test_clone_should_abort_if_user_does_not_want_to_reclone(mocker, tmpdir):
with pytest.raises(SystemExit):
vcs.clone(repo_url, clone_to_dir=str(clone_to_di... | Implement a test to handle trailing slashes in repo_urls | py |
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index <HASH>..<HASH> 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -1418,20 +1418,20 @@ def take(
Examples
--------
- >>> from pandas.api.extensions import take
+ >>> import pandas as pd
With the defa... | DOC: Update import statement (GH<I>) (#<I>) | py |
diff --git a/grimoire_elk/arthur.py b/grimoire_elk/arthur.py
index <HASH>..<HASH> 100755
--- a/grimoire_elk/arthur.py
+++ b/grimoire_elk/arthur.py
@@ -555,7 +555,7 @@ def enrich_backend(url, clean, backend_name, backend_params, ocean_index=None,
logger.info("Refreshing project field in %s", enrich_backend.... | [arthur] Replace bulk_upload_sync with bulk_upload This code replaces the calls to bulk_upload_sync with bulk_upload | py |
diff --git a/dvc/repo/add.py b/dvc/repo/add.py
index <HASH>..<HASH> 100644
--- a/dvc/repo/add.py
+++ b/dvc/repo/add.py
@@ -24,13 +24,9 @@ def add(repo, targets, recursive=False, no_commit=False, fname=None):
stages_list = []
num_targets = len(targets)
- with Tqdm(
- total=num_targets,
- des... | replace super bar with intermediate "Adding..." for single files | py |
diff --git a/bundles.py b/bundles.py
index <HASH>..<HASH> 100644
--- a/bundles.py
+++ b/bundles.py
@@ -112,7 +112,11 @@ jqueryui = Bundle(
}
)
-# if ASSETS_DEBUG and not LESS_RUN_IN_DEBUG
+# less.js is only used when the following configuration is set:
+#
+# - ASSETS_DEBUG is True
+# - LESS_RUN_IN_DEBUG is Fa... | search: typeahead.css into base bundle * Moves the typehead bootstrap stylesheet to the base bundle. * Improves some configuration. | py |
diff --git a/salt/client/ssh/__init__.py b/salt/client/ssh/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/client/ssh/__init__.py
+++ b/salt/client/ssh/__init__.py
@@ -570,7 +570,7 @@ class Single(object):
'id': self.id,
'sock_dir': '/',
})
- self.min... | Dump multi-line yaml into the SHIM Minion config will be larger now, width isn't enough to make sure it's only a single line | py |
diff --git a/fedmsg_meta_fedora_infrastructure/buildsys.py b/fedmsg_meta_fedora_infrastructure/buildsys.py
index <HASH>..<HASH> 100644
--- a/fedmsg_meta_fedora_infrastructure/buildsys.py
+++ b/fedmsg_meta_fedora_infrastructure/buildsys.py
@@ -49,7 +49,7 @@ class KojiProcessor(BaseProcessor):
# assert msg['... | STATE 1 is "closed" | py |
diff --git a/pyrcon/q2rcon.py b/pyrcon/q2rcon.py
index <HASH>..<HASH> 100644
--- a/pyrcon/q2rcon.py
+++ b/pyrcon/q2rcon.py
@@ -13,6 +13,7 @@ class q2RConnection(RConnection):
def __init__(self, host=None, port=27910, password=None):
RConnection.__init__(self, host, port, password)
self._maplist =... | q2rcon->Adding more functionality | py |
diff --git a/python_jsonschema_objects/classbuilder.py b/python_jsonschema_objects/classbuilder.py
index <HASH>..<HASH> 100644
--- a/python_jsonschema_objects/classbuilder.py
+++ b/python_jsonschema_objects/classbuilder.py
@@ -556,13 +556,21 @@ def make_property(prop, info, desc=""):
if isinstance(info['type']... | Fix validation logic for oneOf usage. The original code assumed that the class definitions accessed from __SCHEMA_TYPES__ would always be scalar; however, both number and string has the potential to be multiple classes. As such, restructure the type checks to build up a list first, then do a validation run. Addition... | py |
diff --git a/python_translate/extractors/base.py b/python_translate/extractors/base.py
index <HASH>..<HASH> 100644
--- a/python_translate/extractors/base.py
+++ b/python_translate/extractors/base.py
@@ -8,7 +8,6 @@ file that were distributed with this source code.
"""
import os
-from django.utils.encoding import fo... | Dependency on django removed | py |
diff --git a/langcodes/db.py b/langcodes/db.py
index <HASH>..<HASH> 100644
--- a/langcodes/db.py
+++ b/langcodes/db.py
@@ -35,7 +35,7 @@ _PARENT_LOCALE_JSON = json.load(
open(data_filename('cldr/supplemental/parentLocales.json'), encoding='ascii')
)
PARENT_LOCALES = _PARENT_LOCALE_JSON['supplemental']['parentLoc... | add a DB option for looking up exact names | py |
diff --git a/safe_qgis/tools/test/test_osm_downloader.py b/safe_qgis/tools/test/test_osm_downloader.py
index <HASH>..<HASH> 100644
--- a/safe_qgis/tools/test/test_osm_downloader.py
+++ b/safe_qgis/tools/test/test_osm_downloader.py
@@ -60,7 +60,6 @@ class MockQNetworkReply(QObject):
self.progress = 0
s... | Deleted unused self._size. | py |
diff --git a/nion/swift/LineGraphCanvasItem.py b/nion/swift/LineGraphCanvasItem.py
index <HASH>..<HASH> 100644
--- a/nion/swift/LineGraphCanvasItem.py
+++ b/nion/swift/LineGraphCanvasItem.py
@@ -1138,19 +1138,20 @@ class LineGraphLegendCanvasItem(CanvasItem.AbstractCanvasItem):
def __get_icon_for_layer(self, fill:... | Fix minor drag/drop icon issues. | py |
diff --git a/tcex/api/tc/v2/batch/batch_writer.py b/tcex/api/tc/v2/batch/batch_writer.py
index <HASH>..<HASH> 100644
--- a/tcex/api/tc/v2/batch/batch_writer.py
+++ b/tcex/api/tc/v2/batch/batch_writer.py
@@ -1065,7 +1065,7 @@ class BatchWriter:
if saved:
try:
- ... | + Updating batch writer to be null safe while saving items | py |
diff --git a/pylinky/client.py b/pylinky/client.py
index <HASH>..<HASH> 100644
--- a/pylinky/client.py
+++ b/pylinky/client.py
@@ -109,6 +109,10 @@ class LinkyClient(object):
timeout=self._timeout)
except OSError as e:
raise PyLinkyError("Could not acc... | client.py: raise an error if data is empty This can happen is the date format is wrong and the server does not return any data. | py |
diff --git a/holoviews/core/traversal.py b/holoviews/core/traversal.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/traversal.py
+++ b/holoviews/core/traversal.py
@@ -44,8 +44,9 @@ def unique_dimkeys(obj):
subset = all(set(g1) <= set(g2) or set(g1) >= set(g2)
for g1 in dim_groups for g2 in dim_... | Sorting unified Dimensions for plotting | py |
diff --git a/tests/tests.py b/tests/tests.py
index <HASH>..<HASH> 100755
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -220,12 +220,10 @@ class JiraTestManager(object):
str(sys.version_info[1])
self.project_a = prefix + 'A' # old XSS
- self.project_a_name = "T... | Sorted the project name duplication error with the tests | py |
diff --git a/cqlengine/tests/management/test_management.py b/cqlengine/tests/management/test_management.py
index <HASH>..<HASH> 100644
--- a/cqlengine/tests/management/test_management.py
+++ b/cqlengine/tests/management/test_management.py
@@ -213,3 +213,7 @@ class LeveledCompactionTest(BaseCompactionTest):
def tes... | check for sstable size in MB ok in leveled compaction | py |
diff --git a/injector_test.py b/injector_test.py
index <HASH>..<HASH> 100644
--- a/injector_test.py
+++ b/injector_test.py
@@ -688,7 +688,7 @@ class TestThreadSafety(object):
with lock:
objects.append(o)
- threads = [threading.Thread(target=target) for i in range(2)]
+ thre... | Make use of count parameter in TestThreadSafety as intended | py |
diff --git a/src/orb/schema/table.py b/src/orb/schema/table.py
index <HASH>..<HASH> 100644
--- a/src/orb/schema/table.py
+++ b/src/orb/schema/table.py
@@ -172,6 +172,13 @@ class Table(object):
#----------------------------------------------------------------------
+ def __getitem__(self, key):
+ ... | supporting looking up data by getitem | py |
diff --git a/codenerix_products/models.py b/codenerix_products/models.py
index <HASH>..<HASH> 100644
--- a/codenerix_products/models.py
+++ b/codenerix_products/models.py
@@ -877,6 +877,12 @@ class ProductFinal(CustomQueryMixin, CodenerixModel):
self.recalculate(commit=False)
return super(ProductFinal... | New method for update stock in ProductFinal | py |
diff --git a/telethon/telegram_bare_client.py b/telethon/telegram_bare_client.py
index <HASH>..<HASH> 100644
--- a/telethon/telegram_bare_client.py
+++ b/telethon/telegram_bare_client.py
@@ -201,13 +201,16 @@ class TelegramBareClient:
self(GetConfigRequest()).dc_options
# Connection ... | Call .sync_updates on .connect iff exported_auth is None Calling this method on exported clients would trigger a UserMigrateError because it was being used on a non-native data center. For .connects like this, don't attempt syncing updates. | py |
diff --git a/openxc/tools/dashboard.py b/openxc/tools/dashboard.py
index <HASH>..<HASH> 100644
--- a/openxc/tools/dashboard.py
+++ b/openxc/tools/dashboard.py
@@ -93,15 +93,11 @@ class DataPoint(object):
result += "%s: %s " % (value, self.events.get(item, "?"))
value = result
- ... | Add some color to dashboard to differentiate columns. | py |
diff --git a/mangopaysdk/tools/resttool.py b/mangopaysdk/tools/resttool.py
index <HASH>..<HASH> 100644
--- a/mangopaysdk/tools/resttool.py
+++ b/mangopaysdk/tools/resttool.py
@@ -79,17 +79,20 @@ class BaseRestTool(object):
return request
+ def _sendRequest(self, request):
+ """Prepare and send th... | Extract the send process from the runRequest to help customize again | py |
diff --git a/loomengine/master/api/models/task_runs.py b/loomengine/master/api/models/task_runs.py
index <HASH>..<HASH> 100644
--- a/loomengine/master/api/models/task_runs.py
+++ b/loomengine/master/api/models/task_runs.py
@@ -270,16 +270,16 @@ class TaskRunAttempt(BasePolymorphicModel):
for output in self.out... | Debugging triggering worker deletion. | py |
diff --git a/AlphaTwirl/EventReader/MPEventLoopRunner.py b/AlphaTwirl/EventReader/MPEventLoopRunner.py
index <HASH>..<HASH> 100755
--- a/AlphaTwirl/EventReader/MPEventLoopRunner.py
+++ b/AlphaTwirl/EventReader/MPEventLoopRunner.py
@@ -49,13 +49,13 @@ class CommunicationChannel(object):
class MPEventLoopRunner(object):... | move lines from __init__() to begin() in MPEventLoopRunner | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -31,8 +31,8 @@ setup(
],
keywords = 'AVM FritzBox',
install_requires = [
- 'lxml>=3.2.5',
- 'requests>=2.2.0',
+ 'lxml==4.3.4',
+ 'requests==2.22.0',
],
entry_points={'conso... | requirements fixed to the recent versions, because these versions still support python <I> | py |
diff --git a/salt/modules/rh_service.py b/salt/modules/rh_service.py
index <HASH>..<HASH> 100644
--- a/salt/modules/rh_service.py
+++ b/salt/modules/rh_service.py
@@ -57,7 +57,7 @@ def __virtual__():
if __grains__['os'] == 'Fedora':
if __grains__.get('osrelease', 0) > 15:
return F... | CentOS 7 and Scientific Linux 7 should also use systemd module | py |
diff --git a/src/sos/step_executor.py b/src/sos/step_executor.py
index <HASH>..<HASH> 100755
--- a/src/sos/step_executor.py
+++ b/src/sos/step_executor.py
@@ -437,6 +437,8 @@ def concurrent_execute(stmt, proc_vars={}, step_md5=None, step_tokens=[],
try:
if sig:
if validate_step_sig(sig):
+ ... | Avoid sig from being released when it is successfully validated. #<I> | py |
diff --git a/pip_deploy.py b/pip_deploy.py
index <HASH>..<HASH> 100644
--- a/pip_deploy.py
+++ b/pip_deploy.py
@@ -1,4 +1,5 @@
import subprocess
subprocess.call('python setup.py sdist')
-subprocess.call('python setup.py sdist bdist_wheel upload')
+subprocess.call('python setup.py bdist_wheel --universal')
+sub... | Update pip deploy script to use twine | py |
diff --git a/safe/gui/widgets/dock.py b/safe/gui/widgets/dock.py
index <HASH>..<HASH> 100644
--- a/safe/gui/widgets/dock.py
+++ b/safe/gui/widgets/dock.py
@@ -1288,7 +1288,9 @@ class Dock(QtGui.QDockWidget, FORM_CLASS):
:type new_layer: QgsMapLayer
"""
- if len(existing_layers) is None or new... | fix legend order when the layer is None | py |
diff --git a/pyautogui/__init__.py b/pyautogui/__init__.py
index <HASH>..<HASH> 100644
--- a/pyautogui/__init__.py
+++ b/pyautogui/__init__.py
@@ -877,7 +877,7 @@ def keyUp(key, pause=None, _pause=True):
elif _pause and PAUSE != 0:
time.sleep(PAUSE)
-def press(keys, n=1, pause=None, _pause=True):
+def p... | Renaming n to presses for press() keyword arg. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,7 @@ if sys.version_info[:2] < (2, 6):
'For Python 2.4 / 2.5 please use bitstring version 1.0 instead.')
setup(name='bitstring',
- version='1.3.0',
+ version='2.0.0 beta 1',
d... | Updating version number and beta status. | py |
diff --git a/admin_honeypot/forms.py b/admin_honeypot/forms.py
index <HASH>..<HASH> 100644
--- a/admin_honeypot/forms.py
+++ b/admin_honeypot/forms.py
@@ -1,9 +1,26 @@
+import django
from django import forms
from django.contrib.admin.forms import AdminAuthenticationForm, ERROR_MESSAGE
class HoneypotLoginForm(Adm... | Added compatibility for the custom user model. This should fix the issue in which the error message doesn't correctly string substitute the name of the username field as changed in Django <I>. | py |
diff --git a/spyderlib/pil_patch.py b/spyderlib/pil_patch.py
index <HASH>..<HASH> 100644
--- a/spyderlib/pil_patch.py
+++ b/spyderlib/pil_patch.py
@@ -49,6 +49,12 @@ Type "help", "copyright", "credits" or "license" for more information.
===============================================================================
... | Update our pil_patch for Pillow compatibility Update Issue <I> Status: Fixed | py |
diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py
index <HASH>..<HASH> 100644
--- a/discord/ext/commands/core.py
+++ b/discord/ext/commands/core.py
@@ -616,7 +616,7 @@ def command(name=None, cls=None, **attrs):
-----------
name : str
The name to create the command with. By defa... | [commands] Do not lower-case the function name for default command names There are some badlets out there that apparently violate PEP-8. | py |
diff --git a/openid/consumer/consumer.py b/openid/consumer/consumer.py
index <HASH>..<HASH> 100644
--- a/openid/consumer/consumer.py
+++ b/openid/consumer/consumer.py
@@ -755,7 +755,7 @@ class GenericConsumer(object):
error_code = results.get('error_code')
if error_code is not None:
retur... | [project @ whitespace normalization] | py |
diff --git a/seqlearn/evaluation.py b/seqlearn/evaluation.py
index <HASH>..<HASH> 100644
--- a/seqlearn/evaluation.py
+++ b/seqlearn/evaluation.py
@@ -102,11 +102,14 @@ class SequenceKFold(object):
rng.shuffle(seq_ind)
folds = [[] for _ in range(self.n_folds)]
+ samples_per_fold = np.zero... | ENH simplify kfold and bring complexity down to linear | py |
diff --git a/geomdl/BSpline.py b/geomdl/BSpline.py
index <HASH>..<HASH> 100644
--- a/geomdl/BSpline.py
+++ b/geomdl/BSpline.py
@@ -16,7 +16,7 @@ from . import evaluators
from . import operations
from . import tessellate
from ._utilities import export
-
+from .exceptions import GeomdlException
@export
class Curve... | Use the custom exception in non-rational curve class | py |
diff --git a/fontbakery-build-fontmetadata.py b/fontbakery-build-fontmetadata.py
index <HASH>..<HASH> 100755
--- a/fontbakery-build-fontmetadata.py
+++ b/fontbakery-build-fontmetadata.py
@@ -135,7 +135,7 @@ def generate_italic_angle_images():
draw.line([j*spacing - 400, im.size[1], j*spacing - 400 + im.size[1]*m... | fb-build-fontmetadata should gen images folder elsewhere In order to avoid clutter on the root dir I have just changed the images path to the fontmetadata_tool/images directory. | py |
diff --git a/contrib/nagios/check_anycast_healthchecker.py b/contrib/nagios/check_anycast_healthchecker.py
index <HASH>..<HASH> 100755
--- a/contrib/nagios/check_anycast_healthchecker.py
+++ b/contrib/nagios/check_anycast_healthchecker.py
@@ -88,8 +88,7 @@ def running(pid):
def parse_services(config, services):
- ... | PEP<I> compatible docstring for nagios check commit f5b5b<I>e<I>a7f<I>f0fd<I>cadba<I>a<I> missed that last fix. | py |
diff --git a/boxes/templatetags/boxes_tags.py b/boxes/templatetags/boxes_tags.py
index <HASH>..<HASH> 100644
--- a/boxes/templatetags/boxes_tags.py
+++ b/boxes/templatetags/boxes_tags.py
@@ -1,4 +1,5 @@
from django import template
+from django.core.exceptions import ImproperlyConfigured
from django.core.urlresolvers ... | fixed exception when request is not found in templatetag | py |
diff --git a/pymysql/connections.py b/pymysql/connections.py
index <HASH>..<HASH> 100644
--- a/pymysql/connections.py
+++ b/pymysql/connections.py
@@ -694,6 +694,8 @@ class Connection(object):
''' Check if the server is alive '''
try:
self._execute_command(COM_PING, "")
+ pkt =... | Fix ping() when the connection is not active With MySQL <I> the exception happened when doing read_packet() | py |
diff --git a/tests/integration/shell/test_call.py b/tests/integration/shell/test_call.py
index <HASH>..<HASH> 100644
--- a/tests/integration/shell/test_call.py
+++ b/tests/integration/shell/test_call.py
@@ -400,6 +400,7 @@ class CallTest(ShellCase, testprogram.TestProgramCase, ShellCaseCommonTestsMixin
if ... | Mark output file permissions test as flaky | py |
diff --git a/autograd/numpy/linalg.py b/autograd/numpy/linalg.py
index <HASH>..<HASH> 100644
--- a/autograd/numpy/linalg.py
+++ b/autograd/numpy/linalg.py
@@ -2,7 +2,7 @@ from __future__ import absolute_import
from functools import partial
import numpy as onp
import numpy.linalg as npla
-from .numpy_wrapper import w... | Minor tweak: Removed uncessary dot import | py |
diff --git a/nodeshot/interop/sync/synchronizers/base.py b/nodeshot/interop/sync/synchronizers/base.py
index <HASH>..<HASH> 100644
--- a/nodeshot/interop/sync/synchronizers/base.py
+++ b/nodeshot/interop/sync/synchronizers/base.py
@@ -130,7 +130,7 @@ class HttpRetrieverMixin(object):
""" retrieve data from an ... | [sync] Added default for timeout | py |
diff --git a/performance/venv.py b/performance/venv.py
index <HASH>..<HASH> 100644
--- a/performance/venv.py
+++ b/performance/venv.py
@@ -249,8 +249,10 @@ def create_virtualenv(python):
# upgrade setuptools and pip to make sure that they support environment
# marks in requirements.txt
+ #
+ ... | venv: install/upgrade also wheel "python -m venv" doesn't install wheel by default. | py |
diff --git a/ncolony/__init__.py b/ncolony/__init__.py
index <HASH>..<HASH> 100644
--- a/ncolony/__init__.py
+++ b/ncolony/__init__.py
@@ -10,7 +10,7 @@ metadata = dict(
version=__version__,
description='A process starter/monitor',
long_description="""\
-ForepersonD: A wrapper around Twisted process moni... | Fix names Remnant of old experimental name removed. | py |
diff --git a/py3status/modules/diskdata.py b/py3status/modules/diskdata.py
index <HASH>..<HASH> 100644
--- a/py3status/modules/diskdata.py
+++ b/py3status/modules/diskdata.py
@@ -154,7 +154,7 @@ class Py3status:
devs.append(data[0])
if total == 0:
- return free, used, 'err'
+ ... | Fix early return that avoids divide by zero error | py |
diff --git a/python_jsonschema_objects/classbuilder.py b/python_jsonschema_objects/classbuilder.py
index <HASH>..<HASH> 100644
--- a/python_jsonschema_objects/classbuilder.py
+++ b/python_jsonschema_objects/classbuilder.py
@@ -70,6 +70,10 @@ class ProtocolBase(object):
self._extended_properties[name] = val
... | Allow iterating over object properties. | py |
diff --git a/models.py b/models.py
index <HASH>..<HASH> 100644
--- a/models.py
+++ b/models.py
@@ -126,9 +126,6 @@ class Formatname(db.Model):
class Bibfmt(db.Model):
"""Represents a Bibfmt record."""
- def __init__(self):
- pass
-
__tablename__ = 'bibfmt'
id_bibrec = db.Column(
@@ -146,6 ... | uploader: saving master format to bibfmt table * Improves code compatibility with PEP8. Acked-by: Jiri Kuncar <<EMAIL>> | py |
diff --git a/salt/minion.py b/salt/minion.py
index <HASH>..<HASH> 100644
--- a/salt/minion.py
+++ b/salt/minion.py
@@ -1497,10 +1497,14 @@ class Minion(MinionBase):
log.debug('Forwarding salt error event tag={tag}'.format(tag=tag))
self._fire_master(data, tag)
- def _windows_thread_cleanu... | Pull all fallback cleanup into its own function | py |
diff --git a/jose/backends/cryptography_backend.py b/jose/backends/cryptography_backend.py
index <HASH>..<HASH> 100644
--- a/jose/backends/cryptography_backend.py
+++ b/jose/backends/cryptography_backend.py
@@ -1,6 +1,7 @@
from __future__ import division
import math
+import warnings
import six
@@ -294,8 +295,1... | Add a warning to the cryptography backend to keep it consistent with the other backends | py |
diff --git a/openquake/engine/db/routers.py b/openquake/engine/db/routers.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/db/routers.py
+++ b/openquake/engine/db/routers.py
@@ -58,7 +58,7 @@ class OQRouter(object):
if schema in ("admin",):
# The db name for these is the same as the schema
... | db/routers: Removed references to oqmif. | py |
diff --git a/src/python/pants/bin/pants_runner.py b/src/python/pants/bin/pants_runner.py
index <HASH>..<HASH> 100644
--- a/src/python/pants/bin/pants_runner.py
+++ b/src/python/pants/bin/pants_runner.py
@@ -49,7 +49,7 @@ class PantsRunner(ExceptionSink.AccessGlobalExiterMixin):
@staticmethod
def scrub_pythonpat... | Fix typo: "our" -> "are" (#<I>) ### Problem There's a small typo in a comment. ### Solution Fix the typo | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.