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> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,7 @@ with open(join(this_dir, "README.rst"), encoding="utf-8") as file:
with open(join(this_dir, "requirements.txt")) as f:
requirements = f.read().split("\n")
-version = environ.get("VERSION", "2021.8.12.... | revert setup.py version | py |
diff --git a/cpp_coveralls/__init__.py b/cpp_coveralls/__init__.py
index <HASH>..<HASH> 100644
--- a/cpp_coveralls/__init__.py
+++ b/cpp_coveralls/__init__.py
@@ -65,6 +65,17 @@ def run():
if not args.repo_token:
args.repo_token = yml.get('repo_token', '')
args.service_name = yml.get('service_name', ... | Additional .coveralls.yaml configuration settings Added additional configuration settings to the .coveralls.yaml file including: gcov_options root build_root exclude include | py |
diff --git a/recordlinkage/indexing.py b/recordlinkage/indexing.py
index <HASH>..<HASH> 100644
--- a/recordlinkage/indexing.py
+++ b/recordlinkage/indexing.py
@@ -1,5 +1,6 @@
from __future__ import division
+import warnings
from functools import wraps
import pandas
@@ -297,6 +298,11 @@ class PairsCore(object):
... | Add DeprecationWarning in old index class | py |
diff --git a/dbl/client.py b/dbl/client.py
index <HASH>..<HASH> 100644
--- a/dbl/client.py
+++ b/dbl/client.py
@@ -130,12 +130,12 @@ class DBLClient:
Parameters
----------
- guild_count: Union[int, List[int]]
+ guild_count: Optional[Union[int, List[int]]]
Number of guilds ... | Made docstrings actually make sense this time | py |
diff --git a/can/interfaces/ics_neovi/neovi_bus.py b/can/interfaces/ics_neovi/neovi_bus.py
index <HASH>..<HASH> 100644
--- a/can/interfaces/ics_neovi/neovi_bus.py
+++ b/can/interfaces/ics_neovi/neovi_bus.py
@@ -212,10 +212,10 @@ class NeoViBus(BusABC):
:return: ics device serial string
:rtype: str
... | Simplified the serial number decode conditions | py |
diff --git a/test/integration/test_download.py b/test/integration/test_download.py
index <HASH>..<HASH> 100644
--- a/test/integration/test_download.py
+++ b/test/integration/test_download.py
@@ -95,6 +95,15 @@ class TestDownload(Downloader):
with pytest.raises(AttributeError):
self.download('-n', ... | Add partial test for downloading by CI build-number | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -48,7 +48,7 @@ man_pages = [
class Mock(MagicMock):
@classmethod
def __getattr__(cls, name):
- return MagicMock()
+ return MagicMock()
MOCK_MODULES = ['pathspec', 'yaml'] | chore(docs): Fix conf.py styling | py |
diff --git a/config_resolver.py b/config_resolver.py
index <HASH>..<HASH> 100644
--- a/config_resolver.py
+++ b/config_resolver.py
@@ -27,7 +27,7 @@ import logging
import stat
from warnings import warn
-__version__ = '3.2.1'
+__version__ = '3.3.0'
LOG = logging.getLogger(__name__) | Version bumped to <I> | py |
diff --git a/pytablewriter/writer/text/_text_writer.py b/pytablewriter/writer/text/_text_writer.py
index <HASH>..<HASH> 100644
--- a/pytablewriter/writer/text/_text_writer.py
+++ b/pytablewriter/writer/text/_text_writer.py
@@ -143,10 +143,13 @@ class TextTableWriter(AbstractTableWriter, TextWriterInterface):
"... | Add try-finally to restore the stream | py |
diff --git a/mbuild/coordinate_transform.py b/mbuild/coordinate_transform.py
index <HASH>..<HASH> 100755
--- a/mbuild/coordinate_transform.py
+++ b/mbuild/coordinate_transform.py
@@ -6,7 +6,8 @@ from numpy.linalg import norm, svd, inv
from mbuild.utils.decorators import deprecated
-__all__ = ['rotate', 'spin',
+__... | Include spin_* and rotate_around_* in __all__ | py |
diff --git a/setuptools/tests/__init__.py b/setuptools/tests/__init__.py
index <HASH>..<HASH> 100644
--- a/setuptools/tests/__init__.py
+++ b/setuptools/tests/__init__.py
@@ -266,15 +266,15 @@ class TestFeatures:
assert dist.feature_negopt['without-foo'] == 'with-foo'
assert dist.feature_negopt['witho... | Test for membership should be 'not in'. | py |
diff --git a/alpaca_trade_api/polygon/rest.py b/alpaca_trade_api/polygon/rest.py
index <HASH>..<HASH> 100644
--- a/alpaca_trade_api/polygon/rest.py
+++ b/alpaca_trade_api/polygon/rest.py
@@ -33,7 +33,7 @@ class REST(object):
resp.raise_for_status()
return resp.json()
- def get(self, path, params=... | change back to v1 for other methods | py |
diff --git a/bok_choy/browser.py b/bok_choy/browser.py
index <HASH>..<HASH> 100644
--- a/bok_choy/browser.py
+++ b/bok_choy/browser.py
@@ -127,10 +127,15 @@ def browser(tags=None, proxy=None):
There are three cases:
1. Local browsers: If the proper environment variables are not all set for the second case,
... | Clarify documentation on browser options controlled through environment variables. | py |
diff --git a/luigi/local_target.py b/luigi/local_target.py
index <HASH>..<HASH> 100644
--- a/luigi/local_target.py
+++ b/luigi/local_target.py
@@ -71,7 +71,12 @@ class LocalFileSystem(FileSystem):
return
if parents:
- os.makedirs(path)
+ try:
+ os.makedir... | Fix os.makedirs issue in multithreading (#<I>) (#<I>) * Fix os.makedirs issue in multithreading (#<I>) * Remove unnecessary attribute checking FileExistsError has the errno attribute. * Reduce complexity | py |
diff --git a/soupsieve/util.py b/soupsieve/util.py
index <HASH>..<HASH> 100644
--- a/soupsieve/util.py
+++ b/soupsieve/util.py
@@ -1,9 +1,7 @@
"""Utility."""
from functools import wraps
import warnings
-import os
import re
-MODULE = os.path.dirname(__file__)
DEBUG = 0x00001 | Remove unused variable MODULE (#<I>) * Remove unused variable MODULE Removing this line removes the only reference to `__file__`, which allows tools like pyoxidizer to create standalone binaries that depend on this package. See also: <URL> | py |
diff --git a/oauthlib/oauth2/rfc6749/grant_types/client_credentials.py b/oauthlib/oauth2/rfc6749/grant_types/client_credentials.py
index <HASH>..<HASH> 100644
--- a/oauthlib/oauth2/rfc6749/grant_types/client_credentials.py
+++ b/oauthlib/oauth2/rfc6749/grant_types/client_credentials.py
@@ -71,7 +71,7 @@ class ClientCre... | return application/json content type in case of error | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -18,7 +18,7 @@ setup(
long_description=readme,
author='Piper Merriam',
author_email='pipermerriam@gmail.com',
- url='https://github.com/pipermerriam/trie',
+ url='https://github.com/pipermerriam/py-trie',
... | Fix GitHub URL typo propagated to PyPI | py |
diff --git a/glue/ligolw/lsctables.py b/glue/ligolw/lsctables.py
index <HASH>..<HASH> 100644
--- a/glue/ligolw/lsctables.py
+++ b/glue/ligolw/lsctables.py
@@ -32,6 +32,7 @@ Maintenance of the table definitions is left to the conscience of
interested users.
"""
+
import numpy
from xml import sax
@@ -50,6 +51,7 @... | lsctables.py: aesthetics, typos in comments | py |
diff --git a/cobe/brain.py b/cobe/brain.py
index <HASH>..<HASH> 100644
--- a/cobe/brain.py
+++ b/cobe/brain.py
@@ -286,6 +286,13 @@ with its two nodes"""
log.debug("made %d replies (%d unique) in %f seconds" \
% (count, len(score_cache), _time))
+ if len(text) > 60:
+ ... | Log a little information about each input that gets replies This gives us the beginning of the input line, the number of candidate replies generated, and the score of the best reply. | py |
diff --git a/src/pikepdf/objects.py b/src/pikepdf/objects.py
index <HASH>..<HASH> 100644
--- a/src/pikepdf/objects.py
+++ b/src/pikepdf/objects.py
@@ -108,12 +108,21 @@ class Name(Object, metaclass=_NameObjectMeta):
def random(cls, len_: int = 16, prefix: str = ''):
"""Generate a cryptographically strong ... | Avoid creating Name.random() with '/' character embedded | py |
diff --git a/eventsourcing/__init__.py b/eventsourcing/__init__.py
index <HASH>..<HASH> 100644
--- a/eventsourcing/__init__.py
+++ b/eventsourcing/__init__.py
@@ -1 +1 @@
-__version__ = '7.1.5dev0'
+__version__ = '7.1.5' | Increased version number (to <I>). | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,5 +6,5 @@ setup(
description='Utility functions for strings checking and manipulation.',
author='Davide Zanotti',
author_email='davidezanotti@gmail.com',
- # url='https://www.python.org/sigs/distutils-sig/... | added github project url to setup.py | py |
diff --git a/hanging_threads.py b/hanging_threads.py
index <HASH>..<HASH> 100644
--- a/hanging_threads.py
+++ b/hanging_threads.py
@@ -1,29 +1,5 @@
#!/usr/bin/python
"""
-## The MIT License (MIT)
-## ---------------------
-##
-## Copyright (C) 2014 Nicco Kunzmann
-##
-## https://gist.github.com/niccokunzmann/6038331
... | Update hanging_threads.py Remove licence from docstring | py |
diff --git a/molo/core/models.py b/molo/core/models.py
index <HASH>..<HASH> 100644
--- a/molo/core/models.py
+++ b/molo/core/models.py
@@ -699,7 +699,7 @@ class ArticlePage(CommentedPageMixin, TranslatablePageMixin, Page):
return False
return True
- def tags(self):
+ def tags_list(self):
... | Changed name of the tags function in the ArticlePage model | py |
diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py
index <HASH>..<HASH> 100644
--- a/discord/ext/commands/bot.py
+++ b/discord/ext/commands/bot.py
@@ -202,7 +202,6 @@ class Bot(GroupMixin, discord.Client):
if not view.skip_string(prefix):
return
- view.skip_ws()
... | [commands] Don't skip whitespace if the command trigger is found. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -35,6 +35,7 @@ setup(
name='txtorcon',
version=__version__,
description=description,
+ setup_requires="setuptools>=36.2",
long_description=open('README.rst', 'r').read(),
keywords=['python', 'twiste... | Add setup_requires to ensure support for cond. dependencies | py |
diff --git a/ijroi/ijroi.py b/ijroi/ijroi.py
index <HASH>..<HASH> 100644
--- a/ijroi/ijroi.py
+++ b/ijroi/ijroi.py
@@ -89,14 +89,16 @@ def read_roi(fileobj):
if options & SUB_PIXEL_RESOLUTION:
getc = getfloat
points = np.empty((n_coordinates, 2), dtype=np.float32)
+ fileobj.seek(4*n_coordi... | Handle freehand selections with subpixel resolution Skip over the integer data when we have floating point data later in the file. The floating point values don't need to be adjusted by the bounding box. | py |
diff --git a/katcp/test/test_txkatcp.py b/katcp/test/test_txkatcp.py
index <HASH>..<HASH> 100644
--- a/katcp/test/test_txkatcp.py
+++ b/katcp/test/test_txkatcp.py
@@ -340,3 +340,12 @@ class TestTxDeviceServer(TestCase):
assert 'Traceback' in str(reply)
return self.base_test(('foobar',), reply, c... | A test that checks requests handled by DeviceServer and TxDeviceServer are equal git-svn-id: <URL> | py |
diff --git a/blazeutils/helpers.py b/blazeutils/helpers.py
index <HASH>..<HASH> 100644
--- a/blazeutils/helpers.py
+++ b/blazeutils/helpers.py
@@ -142,7 +142,8 @@ def unique(seq, preserve_order=True):
# f8 by Dave Kirby
# Order preserving
seen = set()
- return [x for x in seq if x not ... | Make order-preserving unique faster Taking a suggestion from StackOverflow | py |
diff --git a/salt/states/file.py b/salt/states/file.py
index <HASH>..<HASH> 100644
--- a/salt/states/file.py
+++ b/salt/states/file.py
@@ -1385,8 +1385,9 @@ def managed(name,
'name': name,
'result': True}
+ content_sources = (contents, contents_pillar, contents_grains)
contents_count =... | Allow managing empty files Without this patch, specifying an empty file like this: empty-file: file.managed: - name: /tmp/empty - contents: '' Did not actually ensure that the file was empty, since the check for content sources didn't separate between unset values and the empty string. | py |
diff --git a/mailer/__init__.py b/mailer/__init__.py
index <HASH>..<HASH> 100644
--- a/mailer/__init__.py
+++ b/mailer/__init__.py
@@ -1,5 +1,5 @@
VERSION = (0, 2, 0, "a", 1) # following PEP 386
-DEV_N = 1
+DEV_N = 2
def get_version(): | bump to <I>a1.dev2 | py |
diff --git a/munigeo/api.py b/munigeo/api.py
index <HASH>..<HASH> 100644
--- a/munigeo/api.py
+++ b/munigeo/api.py
@@ -413,6 +413,15 @@ class AddressViewSet(GeoModelAPIView, viewsets.ReadOnlyModelViewSet):
raise ParseError("municipality with ID '%s' not found" % ocd_id)
queryset = querys... | Enable filtering streets by municipality name. Makes it easier to query different language versions of streets. | py |
diff --git a/tests/test_client.py b/tests/test_client.py
index <HASH>..<HASH> 100644
--- a/tests/test_client.py
+++ b/tests/test_client.py
@@ -33,6 +33,25 @@ class TestClient(MFPTestCase):
)
)
+ def test_get_measurement_ids(self):
+ document = self.get_html_document('measurements.html'... | #<I> Adding test case for _get_measurement_ids Basic test for ensuring the ID values retrieved for each custom measurement are correct. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,3 +1,4 @@
+import multiprocessing, logging # Fix atexit bug
import os
from setuptools import setup, find_packages | Fix 'python setup.py test' with import. | py |
diff --git a/photutils/segmentation/tests/test_deblend.py b/photutils/segmentation/tests/test_deblend.py
index <HASH>..<HASH> 100644
--- a/photutils/segmentation/tests/test_deblend.py
+++ b/photutils/segmentation/tests/test_deblend.py
@@ -164,3 +164,14 @@ class TestDeblendSources(object):
assert segm_deblend.n... | Add deblend test for sources with NaNs | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -28,7 +28,11 @@ def main():
install_requires=[
"requests>=2.3.0",
"six>=1.4.1",
- "bumpversion==0.5.0",
+ "bumpversion>=0.5.0",
+ # needed for SNI support, re... | Require libs which enable SNI support in requests. | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -22,7 +22,12 @@ class Mock(object):
@classmethod
def __getattr__(self, name):
- return Mock() if name not in ('__file__', '__path__') else '/dev/null'
+ if name in ('__file__', '__path... | change Mock object to return meaningful classes for uppercase names | py |
diff --git a/trinity/main.py b/trinity/main.py
index <HASH>..<HASH> 100644
--- a/trinity/main.py
+++ b/trinity/main.py
@@ -221,6 +221,7 @@ def trinity_boot(args: Namespace,
def fix_unclean_shutdown(chain_config: ChainConfig, logger: logging.Logger) -> None:
logger.info("Cleaning up unclean shutdown...")
+ lo... | fix-unclean-shutdown: show target data folder | py |
diff --git a/cmd2.py b/cmd2.py
index <HASH>..<HASH> 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -415,7 +415,8 @@ class Cmd(cmd.Cmd):
self.poutput(msg)
else:
print (msg)
- _STOP_AND_EXIT = 2 # distinguish end of script file from actual exit
+ _STOP_AND_EXIT = True # disti... | EOF is now the 'unusual' stop signal | py |
diff --git a/tmuxp/testsuite/window.py b/tmuxp/testsuite/window.py
index <HASH>..<HASH> 100644
--- a/tmuxp/testsuite/window.py
+++ b/tmuxp/testsuite/window.py
@@ -33,7 +33,8 @@ class WindowNewTestCase(TmuxTestCase):
#tmux('display-panes')
def test_newest_pane_data(self):
- self.session.select_win... | select_window to attached_window | py |
diff --git a/gbdxtools/images/tms_image.py b/gbdxtools/images/tms_image.py
index <HASH>..<HASH> 100644
--- a/gbdxtools/images/tms_image.py
+++ b/gbdxtools/images/tms_image.py
@@ -39,7 +39,7 @@ def load_url(url, shape=(3, 256, 256)):
with memfile.open(driver="PNG") as dataset:
arr = dataset... | default dtype for png tms services should be uint8 | py |
diff --git a/test_twarc.py b/test_twarc.py
index <HASH>..<HASH> 100644
--- a/test_twarc.py
+++ b/test_twarc.py
@@ -419,7 +419,7 @@ def test_retweets():
def test_replies():
# get the top hashtag that is trending
trends = T.trends_place("1")[0]["trends"]
- trends.sort(lambda a, b: cmp(b['tweet_volume'], a['... | fixed sort for python3 | py |
diff --git a/speculator/features/rsi.py b/speculator/features/rsi.py
index <HASH>..<HASH> 100644
--- a/speculator/features/rsi.py
+++ b/speculator/features/rsi.py
@@ -14,8 +14,7 @@ def eval_algorithm(gains, losses):
return: Momentum indicator of a market measuring
the speed and change of price m... | Fix error in RSI when only gains and no losses | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,15 @@
+import os
+import sys
+
from setuptools import setup
+# Add the package source
+sys.path.append(os.path.join(os.path.dirname(__file__), 'src'))
+
+# Import our package
+import iceqube # noqa
+
+
setup(
... | DRY: use version from package.__init__ | py |
diff --git a/raiden/transfer/node.py b/raiden/transfer/node.py
index <HASH>..<HASH> 100644
--- a/raiden/transfer/node.py
+++ b/raiden/transfer/node.py
@@ -456,12 +456,13 @@ def handle_chain_init(
chain_state: ChainState,
state_change: ActionInitChain,
) -> TransitionResult:
- chain_state = ChainSt... | verify chain_state Verifing ChainState inside handle_chain_init method. [ci integration] | py |
diff --git a/tests/test_write.py b/tests/test_write.py
index <HASH>..<HASH> 100644
--- a/tests/test_write.py
+++ b/tests/test_write.py
@@ -27,7 +27,7 @@ class TestWritePlist(unittest.TestCase):
self.roundTrip(set((1, 2, 3)))
def testComplicated(self):
- root = {'preference':[1, 2, None, {'hi ... | None shouldn't occur in arrays either.. not really an error though. | py |
diff --git a/scinum.py b/scinum.py
index <HASH>..<HASH> 100644
--- a/scinum.py
+++ b/scinum.py
@@ -300,13 +300,13 @@ class Number(object):
def nominal(self, nominal):
# parser for the typed member holding the nominal value
if isinstance(nominal, (int, float)):
- if self.uncertainties a... | Fix view usage for py3. | py |
diff --git a/src/boost/python/databaseds/db_access/beacon.py b/src/boost/python/databaseds/db_access/beacon.py
index <HASH>..<HASH> 100644
--- a/src/boost/python/databaseds/db_access/beacon.py
+++ b/src/boost/python/databaseds/db_access/beacon.py
@@ -145,11 +145,14 @@ class beacon(object):
device_node = self._... | beacon: force personal name to be lower | py |
diff --git a/socketIO_client/__init__.py b/socketIO_client/__init__.py
index <HASH>..<HASH> 100644
--- a/socketIO_client/__init__.py
+++ b/socketIO_client/__init__.py
@@ -170,13 +170,13 @@ class SocketIO(object):
try:
warning_screen = _yield_warning_screen(seconds)
for elapsed_time in... | check for exit condition before transport reconnects | py |
diff --git a/webview/__init__.py b/webview/__init__.py
index <HASH>..<HASH> 100644
--- a/webview/__init__.py
+++ b/webview/__init__.py
@@ -31,7 +31,7 @@ elif platform.system() == "Linux":
try:
#Try QT first unless USE_GTK variable is defined
- if os.environ.get('USE_GTK'):
+ if not os.envi... | Fix QT ui failing to launch | py |
diff --git a/salt/cloud/clouds/openstack.py b/salt/cloud/clouds/openstack.py
index <HASH>..<HASH> 100644
--- a/salt/cloud/clouds/openstack.py
+++ b/salt/cloud/clouds/openstack.py
@@ -552,7 +552,6 @@ def request_instance(vm_=None, call=None):
try:
data = conn.create_node(**kwargs)
- return data, v... | Closes #<I> Need to set the password in vm_ which used to happen inside what is now request_instance, but was never added. | py |
diff --git a/montblanc/impl/biro/v2/cpu/SolverCPU.py b/montblanc/impl/biro/v2/cpu/SolverCPU.py
index <HASH>..<HASH> 100644
--- a/montblanc/impl/biro/v2/cpu/SolverCPU.py
+++ b/montblanc/impl/biro/v2/cpu/SolverCPU.py
@@ -373,7 +373,10 @@ class SolverCPU(object):
slvr = self.solver
- vis = ne.evaluate(... | handled 1 source case in compute_ebk_vis | py |
diff --git a/azure/http/httpclient.py b/azure/http/httpclient.py
index <HASH>..<HASH> 100644
--- a/azure/http/httpclient.py
+++ b/azure/http/httpclient.py
@@ -23,6 +23,7 @@ if sys.version_info < (3,):
HTTP_PORT,
HTTPS_PORT,
)
+ from urlparse import urlparse
else:
from http.client imp... | #<I>: fix for temporary redirects as proposed by kaptajnen | py |
diff --git a/nfc/dev/pn53x.py b/nfc/dev/pn53x.py
index <HASH>..<HASH> 100644
--- a/nfc/dev/pn53x.py
+++ b/nfc/dev/pn53x.py
@@ -412,6 +412,11 @@ class device(object):
general_bytes, timeout=timeout)
if atr_req is not None:
+ speed = ("106", "212", "424")[(mode>>4) & 0x07]
+ ... | debug log information when being activated in target mode | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
setup(
name = 'PyPokerEngine',
- version = '0.2.1',
+ version = '1.0.0',
author = 'ishikota',
author_email = 'ishikota086@gmail.com',
descri... | Bump up version to <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -18,6 +18,9 @@ from distutils.command.build_py import build_py
from distutils.command.build_ext import build_ext
+# If no deployment target is set, export 10.9
+os.environ.setdefault('MACOSX_DEPLOYMENT_TARGET', '10.9')
+
... | Make sure we export a default deployment target of some sort | py |
diff --git a/tests/test_commands.py b/tests/test_commands.py
index <HASH>..<HASH> 100644
--- a/tests/test_commands.py
+++ b/tests/test_commands.py
@@ -11,7 +11,7 @@ class CommandTests(TestCase):
admin_api_url_count = 0
if django.VERSION >= (1, 10):
- admin_api_url_count = 11
+ ... | Take the new translation endpoint into account | py |
diff --git a/kitty/core/actor.py b/kitty/core/actor.py
index <HASH>..<HASH> 100644
--- a/kitty/core/actor.py
+++ b/kitty/core/actor.py
@@ -72,8 +72,11 @@ class KittyActor(KittyObject):
self.report.add('start_time', time.time())
self.report.add('test_number', self.test_number)
self.report.add(... | logging: throttle message about waiting for target to be alive | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -14,7 +14,7 @@ from setuptools import setup
def read(fname):
- return open(os.path.join(os.path.dirname(__file__), fname)).read()
+ return open(os.path.join(os.path.dirname(__file__), fname), encoding="utf-8").read(... | (1) Add utf-8 encoding. Fix UnicodeDecodeError while installing on Ubuntu server. | py |
diff --git a/coursera/coursera_dl.py b/coursera/coursera_dl.py
index <HASH>..<HASH> 100755
--- a/coursera/coursera_dl.py
+++ b/coursera/coursera_dl.py
@@ -502,7 +502,7 @@ def download_lectures(wget_bin,
Downloads lecture resources described by sections.
Returns True if the class appears completed.
"""
- ... | Fix the real reason for warning of comparison of different types. The real reason why we get a warning that we are comparing multiple different types is that last_update is initialized with Null and, then, used in the computation of a maximum. Since we are dealing with seconds since the epoch, we can assume that ever... | py |
diff --git a/restclients_core/tests/dao_implementation/test_live.py b/restclients_core/tests/dao_implementation/test_live.py
index <HASH>..<HASH> 100644
--- a/restclients_core/tests/dao_implementation/test_live.py
+++ b/restclients_core/tests/dao_implementation/test_live.py
@@ -135,7 +135,13 @@ class TestLiveSSL(TestCa... | fixes test for ssl failure | py |
diff --git a/src/rasterstats/io.py b/src/rasterstats/io.py
index <HASH>..<HASH> 100644
--- a/src/rasterstats/io.py
+++ b/src/rasterstats/io.py
@@ -192,7 +192,7 @@ def boundless_array(arr, window, nodata, masked=False):
window_shape = (wr_stop - wr_start, wc_stop - wc_start)
# create an array of nodata v... | set dtype in new array creation keep the dtype constant when returning a windowed array | py |
diff --git a/gsshapy/modeling/framework.py b/gsshapy/modeling/framework.py
index <HASH>..<HASH> 100644
--- a/gsshapy/modeling/framework.py
+++ b/gsshapy/modeling/framework.py
@@ -656,11 +656,11 @@ class GSSHAFramework(object):
# write out GSSHA output
log_file_path = os.path.join(worki... | modify code to work in python3 | py |
diff --git a/coconut/root.py b/coconut/root.py
index <HASH>..<HASH> 100644
--- a/coconut/root.py
+++ b/coconut/root.py
@@ -28,7 +28,7 @@ import sys
#-----------------------------------------------------------------------------------------------------------------------
VERSION = "1.0.0"
-VERSION_NAME = "Pinnate"
+VE... | Set version name to Albatross | py |
diff --git a/SpiffWorkflow/specs/base.py b/SpiffWorkflow/specs/base.py
index <HASH>..<HASH> 100644
--- a/SpiffWorkflow/specs/base.py
+++ b/SpiffWorkflow/specs/base.py
@@ -216,8 +216,8 @@ class TaskSpec(object):
Checks whether all required attributes are set. Throws an exception
if an error was detecte... | fix: TaskSpecs do not require an id | py |
diff --git a/scenarios/kubernetes_kubelet.py b/scenarios/kubernetes_kubelet.py
index <HASH>..<HASH> 100755
--- a/scenarios/kubernetes_kubelet.py
+++ b/scenarios/kubernetes_kubelet.py
@@ -119,7 +119,6 @@ def run_local_mode(script, properties, private_key, public_key):
k8s = os.getcwd()
if not os.path.basename(... | Do not set the ssh username | py |
diff --git a/osmhm/process.py b/osmhm/process.py
index <HASH>..<HASH> 100644
--- a/osmhm/process.py
+++ b/osmhm/process.py
@@ -12,7 +12,6 @@ def process(objects):
collation[firstAxis] = first
-
def addInfo(collation, firstAxis, thing):
if firstAxis not in collation:
collation[fir... | Some flake8 changes for process.py | py |
diff --git a/cocaine/tools/tools.py b/cocaine/tools/tools.py
index <HASH>..<HASH> 100644
--- a/cocaine/tools/tools.py
+++ b/cocaine/tools/tools.py
@@ -329,7 +329,7 @@ class CrashlogListAction(StorageAction):
def parseCrashlogs(crashlogs, timestamp=None):
flt = lambda x: (x == timestamp if timestamp else True)
-... | Fixed: cocaine.tools.parseCrashlogs couldn't handle app names with ":" in it | py |
diff --git a/panphon/bin/generate_ipa_all.py b/panphon/bin/generate_ipa_all.py
index <HASH>..<HASH> 100644
--- a/panphon/bin/generate_ipa_all.py
+++ b/panphon/bin/generate_ipa_all.py
@@ -115,7 +115,7 @@ def read_ipa_bases(ipa_bases):
def parse_dia_defs(dia_defs):
- defs = yaml.load(codecs.open(dia_defs, "r", "u... | Added explicit YAML loader | py |
diff --git a/codekit/cli/github_tag_version.py b/codekit/cli/github_tag_version.py
index <HASH>..<HASH> 100755
--- a/codekit/cli/github_tag_version.py
+++ b/codekit/cli/github_tag_version.py
@@ -28,6 +28,19 @@ from .. import codetools
from .. import eprint
+def lookup_email(args):
+ email = args.email
+ if e... | factor #lookup_email out of #main | py |
diff --git a/tests/unit/test_metadata.py b/tests/unit/test_metadata.py
index <HASH>..<HASH> 100644
--- a/tests/unit/test_metadata.py
+++ b/tests/unit/test_metadata.py
@@ -315,12 +315,6 @@ class BytesTokensTest(unittest.TestCase):
self.assertEqual(bytes_token.hash_fn(str(cassandra.metadata.MAX_LONG)), str(cassa... | pass unit test on new BytesToken init; still need to expand tests | py |
diff --git a/cotyledon/tests/test_functional.py b/cotyledon/tests/test_functional.py
index <HASH>..<HASH> 100644
--- a/cotyledon/tests/test_functional.py
+++ b/cotyledon/tests/test_functional.py
@@ -341,9 +341,9 @@ class TestBadlyCodedCotyledon(Base):
@unittest.skipIf(os.name != 'posix', 'no posix support')
... | Increase sleep time in badly_coded_app test On some low end machines or on machines under heavy loads, we need to increase the sleep time to get the test to pass. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,7 @@
from setuptools import setup
setup(
- name = "IronMQ",
+ name = "iron-mq",
py_modules = ["iron_mq"],
install_requires = ["iron_core"],
version = "0.3", | Updated setuptools name, to match iron-worker in pypi. | py |
diff --git a/examples/alias_startup.py b/examples/alias_startup.py
index <HASH>..<HASH> 100755
--- a/examples/alias_startup.py
+++ b/examples/alias_startup.py
@@ -14,6 +14,10 @@ class AliasAndStartup(cmd2.Cmd):
alias_script = os.path.join(os.path.dirname(__file__), '.cmd2rc')
super().__init__(startup_... | Added a command which does nothing and produces no output to alias_startup.py example This is just for some manual edge cases testing. | py |
diff --git a/openquake/hazardlib/contexts.py b/openquake/hazardlib/contexts.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/contexts.py
+++ b/openquake/hazardlib/contexts.py
@@ -1201,6 +1201,7 @@ class PmapMaker(object):
def _make_src_indep(self):
# sources with the same ID
+ maxsize = M... | Refined MAXSIZE in case of collapse | py |
diff --git a/aiosqlite/core.py b/aiosqlite/core.py
index <HASH>..<HASH> 100644
--- a/aiosqlite/core.py
+++ b/aiosqlite/core.py
@@ -149,9 +149,11 @@ class Connection(Thread):
try:
await self._execute(self._conn.close)
except Exception:
- LOG.exception("exception occurred while c... | Allow caller to handle close() exception, reduce logger to "info" | py |
diff --git a/test/test_subproc_runner.py b/test/test_subproc_runner.py
index <HASH>..<HASH> 100644
--- a/test/test_subproc_runner.py
+++ b/test/test_subproc_runner.py
@@ -34,7 +34,7 @@ else:
raise NotImplementedError(os_type)
-class Test_SubprocessRunner_run:
+class Test_SubprocessRunner_run(object):
@p... | Change class definitions from old style to new style | py |
diff --git a/python-package/setup.py b/python-package/setup.py
index <HASH>..<HASH> 100644
--- a/python-package/setup.py
+++ b/python-package/setup.py
@@ -158,7 +158,7 @@ def compile_cpp(
logger.info("Starting to compile with CMake and MinGW.")
silent_call(cmake_cmd + ["-G", "MinGW Makefiles"]... | [python] parallelize MinGW make similarly to Unix make command (#<I>) | py |
diff --git a/pyclust/_bisect_kmeans.py b/pyclust/_bisect_kmeans.py
index <HASH>..<HASH> 100644
--- a/pyclust/_bisect_kmeans.py
+++ b/pyclust/_bisect_kmeans.py
@@ -142,6 +142,11 @@ class BisectKMeans(object):
Parameters
-------
+ n_clusters: number of clusters (default = 2)
+ n_tr... | bisect_kmeans docs | py |
diff --git a/angr/analyses/cfg_fast.py b/angr/analyses/cfg_fast.py
index <HASH>..<HASH> 100644
--- a/angr/analyses/cfg_fast.py
+++ b/angr/analyses/cfg_fast.py
@@ -1565,14 +1565,8 @@ class CFGFast(ForwardAnalysis, CFGBase): # pylint: disable=abstract-method
:rtype: tuple
"""
- # some helper... | CFGFast: fix the issue that max_size can be None for _guess_data_type() | py |
diff --git a/test/test_cronex.py b/test/test_cronex.py
index <HASH>..<HASH> 100755
--- a/test/test_cronex.py
+++ b/test/test_cronex.py
@@ -152,15 +152,13 @@ class test_testedmodule(unittest.TestCase):
y,v)[-1],0,0)))
def test_calendar_change_vs_hour_change(self):
- epoch = (2010, 11, ... | Calendar date vs hours in unit test | py |
diff --git a/padaos.py b/padaos.py
index <HASH>..<HASH> 100644
--- a/padaos.py
+++ b/padaos.py
@@ -42,7 +42,7 @@ class IntentContainer:
(r'\\#', r'#'), # \# -> #
# === Support Parentheses Expansion ===
- (r'(?<!\\{\\~)\\\(', r'('), # \( -> ( ignoring \{\~\(
+ ... | Don't save nameless entities They aren't used and contribute to the entity limit | py |
diff --git a/tortoise/fields/__init__.py b/tortoise/fields/__init__.py
index <HASH>..<HASH> 100644
--- a/tortoise/fields/__init__.py
+++ b/tortoise/fields/__init__.py
@@ -30,3 +30,39 @@ from tortoise.fields.relational import (
OneToOneRelation,
ReverseRelation,
)
+
+__all__ = [
+ "CASCADE",
+ "RESTRICT... | add __all__ to export fields (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,7 @@ Based entirely on Django's own ``setup.py``.
import os
import sys
-from setuptools import find_packages, setup
+from setuptools import setup
try:
from setuptools.command.test import test as TestCommand... | manually define packages, *sigh* python packaging..... | py |
diff --git a/satpy/utils.py b/satpy/utils.py
index <HASH>..<HASH> 100644
--- a/satpy/utils.py
+++ b/satpy/utils.py
@@ -43,9 +43,27 @@ def ensure_dir(filename):
os.makedirs(directory)
-def debug_on():
- """Turn debugging logging on."""
+def debug_on(dep_warnings=True):
+ """Turn debugging logging on.
... | When debugging is on, use deprecation warnings | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@
# File: setup.py
# Desc: needed
-from setuptools import setup
+from setuptools import setup, find_packages
INSTALL_REQUIRES = (
'gevent>1,<2',
@@ -51,17 +51,7 @@ if __name__ == '__main__':
aut... | Use `find_packages` over manually listing. | py |
diff --git a/test/integration/tests/lens_and_source/lens_mass_x1_source_x2_hyper.py b/test/integration/tests/lens_and_source/lens_mass_x1_source_x2_hyper.py
index <HASH>..<HASH> 100644
--- a/test/integration/tests/lens_and_source/lens_mass_x1_source_x2_hyper.py
+++ b/test/integration/tests/lens_and_source/lens_mass_x1_... | attempt to speed up hyper phase of integration test | py |
diff --git a/sentinelhub/sentinelhub_batch.py b/sentinelhub/sentinelhub_batch.py
index <HASH>..<HASH> 100644
--- a/sentinelhub/sentinelhub_batch.py
+++ b/sentinelhub/sentinelhub_batch.py
@@ -405,7 +405,7 @@ def _iter_pages(service_url, config, **params):
url = f'{service_url}?{urlencode(params)}'
resu... | removed outdated options in batch iterator | py |
diff --git a/plenum/test/txn_author_agreement/acceptance/test_taa_acceptance_validation.py b/plenum/test/txn_author_agreement/acceptance/test_taa_acceptance_validation.py
index <HASH>..<HASH> 100644
--- a/plenum/test/txn_author_agreement/acceptance/test_taa_acceptance_validation.py
+++ b/plenum/test/txn_author_agreemen... | INDY-<I>: fix test_taa_acceptance_allowed_when_disabled | py |
diff --git a/xray/dataset.py b/xray/dataset.py
index <HASH>..<HASH> 100644
--- a/xray/dataset.py
+++ b/xray/dataset.py
@@ -844,7 +844,8 @@ class Dataset(Mapping):
if k not in overwrite_vars}
# update variables
- new_variables = _expand_variables(other_variables, pote... | Ensure merge only requires equal, not identical variables | py |
diff --git a/user_agent/device.py b/user_agent/device.py
index <HASH>..<HASH> 100644
--- a/user_agent/device.py
+++ b/user_agent/device.py
@@ -3,7 +3,7 @@ import json
PACKAGE_DIR = os.path.dirname(os.path.realpath(__file__))
-SMARTPHONE_DEV_IDS = json.load(open(os.path.join(
- PACKAGE_DIR, 'data/smartphone_dev_... | device.py: ensure file descriptors are closed | py |
diff --git a/src/saml2/metadata.py b/src/saml2/metadata.py
index <HASH>..<HASH> 100644
--- a/src/saml2/metadata.py
+++ b/src/saml2/metadata.py
@@ -681,7 +681,9 @@ def do_endpoints(conf, endpoints):
if isinstance(args, basestring): # Assume it's the location
args = {"location":args,... | Allow for more than one endpoint on a service, possibly with different binding | py |
diff --git a/pyrogram/client/methods/messages/get_messages.py b/pyrogram/client/methods/messages/get_messages.py
index <HASH>..<HASH> 100644
--- a/pyrogram/client/methods/messages/get_messages.py
+++ b/pyrogram/client/methods/messages/get_messages.py
@@ -16,12 +16,17 @@
# You should have received a copy of the GNU Les... | Wait in case of flood errors in get_messages | py |
diff --git a/plenum/config.py b/plenum/config.py
index <HASH>..<HASH> 100644
--- a/plenum/config.py
+++ b/plenum/config.py
@@ -371,6 +371,6 @@ PRE_VC_STRATEGY = PreVCStrategies.VC_START_MSG_STRATEGY
EXTENDED_QUOTA_MULTIPLIER_BEFORE_VC = 10
OUTDATED_REQS_CHECK_ENABLED = True
-OUTDATED_REQS_CHECK_INTERVAL = 30 # sec... | Increase outdated requests check interval up to <I> mins. This is done according to large propagates and ordering phases timeouts (<I> and <I> hours respectively). Also each check assumes full traversing over requests queue so often checks may decrease node's performance. | py |
diff --git a/tests/test_utils.py b/tests/test_utils.py
index <HASH>..<HASH> 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -9,7 +9,7 @@ from tests.basic_env import DirHierarchyEnvironment
class TestExecutor(DirHierarchyEnvironment):
def setUp(self):
- pass
+ DirHierarchyEnvironment.... | tests: utils: don't forget to init env | py |
diff --git a/param/parameterized.py b/param/parameterized.py
index <HASH>..<HASH> 100644
--- a/param/parameterized.py
+++ b/param/parameterized.py
@@ -11,7 +11,7 @@ import random
import numbers
import operator
-from collections import namedtuple, OrderedDict
+from collections import defaultdict, namedtuple, Ordered... | Batch param.depends (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -21,8 +21,9 @@ setup(
license = 'The MIT License',
install_requires = [
- 'requests',
- 'bunch'
+ 'bunch>=1.0.0',
+ 'requests>=2.6',
+ 'six>=1.9.0'
],
packages = [
... | Updated install_requires and added Python 2/<I> to packages | py |
diff --git a/aioice/ice.py b/aioice/ice.py
index <HASH>..<HASH> 100644
--- a/aioice/ice.py
+++ b/aioice/ice.py
@@ -149,7 +149,6 @@ class StunProtocol(asyncio.DatagramProtocol):
message = stun.parse_message(data)
self.__log_debug('< %s %s', addr, message)
except ValueError:
- ... | Do not log incoming / outgoing data packet length This can be logged by the API users and hurts traffic at very high speeds. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -36,6 +36,7 @@ setup(
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
- "Programming Language :: Python :: 3.5"
+ ... | python <I> is also supported | py |
diff --git a/grove/amplification/amplification.py b/grove/amplification/amplification.py
index <HASH>..<HASH> 100644
--- a/grove/amplification/amplification.py
+++ b/grove/amplification/amplification.py
@@ -17,7 +17,7 @@
"""Module for amplitude amplification, for use in algorithms such as Grover's algorithm.
See G... | Fix link to Quantum Amplitude Amplification and Estimation paper | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.